Solved: Write a program that asks the user for up to 1…

$30.00

Category:

Description

Solved: Write a program that asks the user for up to 1…

Write a program that asks the user for up to 10 integers (it could be fewer); stop prompting when the user enters zero. Then list the numbers in reverse order. Use the following example run as a guide:

Enter a number (0 to stop): 11

Enter a number (0 to stop): 33

Enter a number (0 to stop): 55

Enter a number (0 to stop): 77

Enter a number (0 to stop): 99

Enter a number (0 to stop): 0

Your numbers in reverse order are:

99, 77, 55, 33, 11


error: Content is protected !!