Following is the menu to be displayed to the user. On selecting a choice display appropriate result. Number should be accepted from the user.

Menu

1. Prime Factors

2. Leap Year

3. Sum of all digits

4. Number in reverse order