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.
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
Post a Comment