PHP - Assignment
PHP - Assignment
Logic:
o Take a number.
o Reverse the input number.
o Compare the two numbers.
o If equal, it means number is palindrome
Fibonacci series is the one in which you will get your next term by adding
previous two numbers.
For example,
0 1 1 2 3 5 8 13 21 34
Here, 0 + 1 = 1
1+1=2
3 + 2 = 5 and so on.
Logic: