SOURCE CODE:
OUTPUT:
MENU 1. Fibonacci Series 2. Factorial of number 3. Multiplication table 4. Check whether number is Palindrome 5. Check whether number is Angstrom 6. EXIT Enter your choice: 1 Enter the no of elements of fibonacci series to show:8 Fibonacci: 0 1 1 2 3 5 8 13 MENU 1. Fibonacci Series 2. Factorial of number 3. Multiplication table 4. Check whether number is Palindrome 5. Check whether number is Angstrom 6. EXIT Enter your choice: 2 Enter the number to find factorial of: 4 Factorial is: 24 MENU 1. Fibonacci Series 2. Factorial of number 3. Multiplication table 4. Check whether number is Palindrome 5. Check whether number is Angstrom 6. EXIT Enter your choice: 3 Enter the number of whose multiplication table is to be made (till 12): 17 Table: 17x1=17 17x2=34 17x3=51 17x4=68 17x5=85 17x6=102 17x7=119 17x8=136 17x9=153 17x10=170 17x11=187 17x12=204 MENU 1. Fibonacci Series 2. Factorial of number 3. Multiplication table 4. Check whether number is Palindrome 5. Check whether number is Angstrom 6. EXIT Enter your choice: 4 Enter number to check whether palindrome: 121 Number is Palindrome. MENU 1. Fibonacci Series 2. Factorial of number 3. Multiplication table 4. Check whether number is Palindrome 5. Check whether number is Angstrom 6. EXIT Enter your choice: 5 Enter number to check whether Angstrom: 371 Number is Angstrom. MENU 1. Fibonacci Series 2. Factorial of number 3. Multiplication table 4. Check whether number is Palindrome 5. Check whether number is Angstrom 6. EXIT Enter your choice: 6 Exiting... |
C LAB > (Sem2) Data Structures >