Write a function to multiply 2 numbers.
View
Write a program to print Fibonacci series of n terms where n is input by user :
0 1 1 2 3 5 8 13 21 .....
In the Fibonacci series, a number is the sum of the previous 2 numbers that came before it.
View
Write a function which takes in 2 numbers and returns the greater of those two.
View
Take an array of numbers as input and check if it is an array sorted in ascending order.
Eg : { 1, 2, 4, 7 } is sorted in ascending order.
{3, 4, 6, 2} is not sorted in ascending order.
View
Searching for an element x in a matrix.
View
Take an array of names as input from the user and print them on the screen.
View
Input an email from the user. You have to create a username from the email by deleting the part that comes after ‘@’. Display that username to the user.
Example :
email = “mejona@gmail.com” ; username = “mejona”
email = “helloWorld123@gmail.com”; username = “helloWorld123”
View