Write a C++ program to input two positive numbers A and B; A
Then the program should prompt the user to choose from the following menu: (define a function for each of the following menu tasks)
1. Output all prime numbers between 1 and B.
2. Compute and the value of the sequence: A + A^2/2! + A^3/3!+⋯+ A^B/B!
3. Output the factorial of each integer between A and b.
4. Output the GCD of A and B.
5. Exit
The program should loop on the above menu till the user selects 5 to exit.
Answers
Answered by
0
Explanation:
ytfrxrdhiuytttgggghhhhhhhhhhhhhhgh
Similar questions