Using switch statement write a menu driven program to do the following: i) Find and display all the factors of a number input by the user. ii) Find and display the factorial of a number input by user. pls help me by doing the 1st part as I'm able to do the 2nd part
Answers
Answered by
2
Answer:
Sample Input : n = 15
Sample Output : 1, 3, 5
ii) To find and display the factorial of a number input by the user (the factorial of a
non-negative integer n, denoted by n!, is the product of all integers less than or equal to n.
Example:
Sample Input : n = 5
Sample Output: 5! = 1*2*3*4*5 =120
Hope it helps!!!
Mark me as brainliest please.
Similar questions