Question: Write a program called Prog1b that reads a sequence of random integers from stdin. When the input has been exhausted, the program prints the number
Write a program called "Prog1b" that reads a sequence of random integers from stdin. When the input has been exhausted, the program prints the number of integers read, their sum as well as the minimum and maximum values to stdout. Place all the code in the main function (like you did in most of your CS102 labs). Test that the program works using simple input examples. UNIX> ./Prog1b 10 3 16 ctrl-d (To close stdin) N = 3 sum = 29 min = 3 max = 16
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
