This preview shows pages 1–2. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: Largest = num1, Smallest = num1 /* Next segment has the if statements that compare numbers to determine largest and smallest value. */ if (Largest < num2) Largest = num2 if (Smallest > num2) Smallest = num2 if (Largest < num3) Largest = num3 if (Smallest > num3) Smallest = num3 if (Largest < num4) Largest = num4 if (Smallest > num4) Smallest = num4 // Show the largest number cout << endl << endl << "The largest value entered was " << Largest << endl Sheet1 Page 2 // Show the smallest number cout << "The smallest value entered was " << Smallest << endl return 0 }...
View Full Document
This note was uploaded on 03/05/2010 for the course DSDDDDDDD dddddfvvc taught by Professor Cxcseef during the Spring '10 term at École Normale Supérieure.
- Spring '10