Calculating Factorial of a Number in Windows Mobile App

Calculate the factorial , reverse  , palindrome of a given number in windows mobile.

Description : The following program demonstrates factorial , reverse , palindrome operations.

Factorial : The product of an integer and all the integer below it .

Reverse: Reverse the entered digit  from right to left.

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.

Events Used:

b1_click()  - Performs factorial of a number. Gets the value from  t1.
Eg. 121 = 4789001600
b2_click() – performs the reverse of number entered. Gets value from t1.Performs reverse operation and stores in t3 eg. 12 = 21.
B3_click() – To check if number is palindrome or not . Get values from t1. Performs palindrome operations and shows message in t3.
B4_click – Resets and clears all values.

Namespaces used

System Component model – This namespace provides classes that are used to implement the runtime in design time behavior of components and controls.




Comments