labAssignment6

# labAssignment6 - } // end of for loop // Promt user to...

This preview shows pages 1–2. Sign up to view the full content.

Sheet1 Page 1 /* Lab assignment 6 Kasey Scott [email protected] CSE 1020.301 L10 this code shows the largest and smallest number given by user */ #include <iostream> int main() { int sum, num1, num2, num3, num4, num5, inLine, vertical cout << "Lab Assignment 6\t CSE 1020.301 L10" << endl << "Kasey Scott \t [email protected]" << endl // loop that shows numbers 10 through 20 inLine = 10 while(inLine <= 20) { cout << inLine << " " inLine++ } // end of for loop cout << endl << endl // loop that shows numbers 100 through 90 vertical = 100 while (vertical >= 90) { cout << vertical << endl vertical--

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: } // end of for loop // Promt user to enter num1. cout << "\nPlease enter first number: " cin >> num1 // Promt user to enter num2. cout << "Please enter second number: " cin >> num2 // Promt user to enter num3. cout << "Please enter third number: " cin >> num3 // Promt user to enter num4. cout << "Please enter fourth number: " cin >> num4 // Promt user to enter num5. Sheet1 Page 2 cout << "Please enter fourth number: " cin >> num5 sum = num1 + num2 + num3 + num4 + num5 cout << endl << endl << "The sum is " << sum << "." << 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.

### Page1 / 2

labAssignment6 - } // end of for loop // Promt user to...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online