Computer Science, asked by syedmuhammadzafeer, 1 month ago

Use switch-case statements for this program. Do not use functions. Write a program that asks the user

to choose one of the following options: 1. Factorial of a number 2. Odd or even 3. Exponent (x to the

power y) 4. Exit program Once the user makes a choice, the program enters that case-statement and

prompts the user to input x, and y (if required), and complete the calculations. When the computation is

complete, the program prints the result of the calculation and returns to the top and presents the same

options again. The program will keep repeating until the user chooses options 4 to exit the program. The

only way to end the program is that the user chooses option 4. For example, if the user chooses 3, then

the program enters "case 3" and prompts the user to input values of x and y. The program makes the

calculations, prints the result, goes back to the top, and asks the user to make another choice.​

Answers

Answered by vashtidhiman
0

Answer:

oof my god

Explanation:

this question is also given in my book also

Answered by chandrakalacha78
0

Answer:

this question is very big

Similar questions