Previous H/W questions
Write a program to take an input from the user and print its multiplication table?
sample Input:
3
Output format:
3*1=3
3*2=6
- - - - -
- - - - - -
3*20=60
Write a program to take a number n as input from user and then take n no's of integers from user again and count the number of even integers given by user.
Sample input:
5
4 3 9 5 6
Sample output:
2
Questions
1.Find the number of digits in an integer given by user.
2.Write a program to print all the digits in an integer taken input from user.
sample input:
123
sample output:
3
2
1
Find the reverse of number
Write a program to take a input from user and find is it a palindrome or not?
sample input 1
123
sample output
NO
sample input 2
121
sample output
YES
Write a program to print Fibonacci series up-to n.
Take two number from user n,m and print the value of n to the power
sample input
2 3
sample output
8
Write a program to find the frequency of an given digit m in the given integer n
sample input
2 1222
sample output
3
Write a program to take the input from user until user's input is negative and print the sum of all the positive values
sample input
1 2 3 -1
sample output
6