Question: Write a C program that prints either the first twelve multiples of an integer n ( n , 2n , ), or the first fifteen
Write a C program that prints either the first twelve multiples of an integer n ( n , 2n , ), or the first fifteen integer powers of n ( n1 , n2, ). The program should ask the user to input n, which is restricted to 1 < n 10. The program should also ask the user to choose between displaying multiples or powers. If the user input is not valid ( n outside of range), ask the user to try again. If the input is not valid the second time, display an error message and terminate the program.
Please provide a screen shot of the outputs of the case n = 10
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
