Calculate
the factorial , reverse , palindrome of a
given number in Android.
Description :
The following program demonstrates factorial , reverse , palindrome operations.
Factorial : The product of an
integer and all the integer below it .The factorial of any number is that
number times the factorial of (1 small than that number)
The factorial function (symbol !)means to multiply a
series of descending natural numbers.
Eg 4! = 4*3*2*1 = 24
Reverse: Reverse the number entered
by user from right to left then prints
it on screen
Eg 45 reverse will be 54.
Palindrome : A palindrome number
or a numerical palindrome is a number that remains the same when its digits are
reversed eg. 16461 it is symmetrical.
Comments
Post a Comment