CPPForSchool.com: Flow of Control Set 2: Assignment 10

10. Write a program to enter the numbers till the user wants and at the end it should display the maximum and minimum number entered.


Like the previous assignment, I took a different route when compared to the example solution.  Instead of using a do/while loop, I just used a while loop.  Also, the min value has been set to the default maximum value for int, specifically within C++.  Everything is working as designed.  As usual, I included the sample source and output for comparison.












Comments

Popular posts from this blog

CPPForSchool.com: Variable, Operator & Expression Set 1: Assignment 9

CPPForSchool.com: Array - Single Dimension Set 1 Assignment 6

CPPForSchool.com: Variable, Operator & Expression Set 1: Assignment 8