Write a MARIE program to allow the user to input 8 integers (positive, negative, or zero) and
Fantastic news! We've Found the answer you've been seeking!
Question:
Write a MARIE program to allow the user to input 8 integers (positive, negative, or zero) and
then find the smallest and the largest and print each of these out.
As an example, if the user enters the following decimal numbers as input (one after the other)
23, -6, 78, 0, 36, 3, -250, –5
the program would output the following values as the maximum and minimum, respectively:
78
-250
Assume that the user will always provide valid numbers as input; that is, do not worry about
dealing with invalid input data.
Write comments within your program so that a reader can understand it easily.
Related Book For
Physics for Scientists and Engineers A Strategic Approach with Modern Physics
ISBN: 978-0133942651
4th edition
Authors: Randall D. Knight
Posted Date: