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.