After you have written a C++ program that selects and displays the maximum value of five numbers to be entered when the program is executed.
(Hint: Using a for loop with both a cin and if statement inside the loop)
how can I modify the program so that it displays both the maximum value and the position in the input set of numbers where the maximum occurs.
Comments
Leave a comment