Reference no: EM132212254
Question
Write pseudocode and translate it to C-program for the following problem. Ask users to input a series of integers. The input will end with the number 0.
Assume users will never input more than 10 integers before input 0. After users input all the numbers,
1) print all the input numbers to the screen in the reverse order they are input by the users, and 2) print the minimal number of the input numbers to the screen, in a user friendly manner.
For example, assuming the user input is 1, 3, 20, 15, 0. The information on screen should be The numbers in the reverse order of the input are 15 20, 3, 1.
The minimal number of them is 1 You are expected to use an array to store the input numbers and use for loop idioms (see lecture notes on loop statements) to get the input numbers (and store them into an array and find the minimal number and generate the display outputs.
You are expected to practice the problem solving methodology, and your pseudocode should follow the format of examples in class and should be simple, precise and easy to read.
(Don't include workings in your final version of pseudocode.)
Both your pseudocode and C-program should work correctly.