Homework 3 - int main int min = 0 integer for(int i=0...

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon
Homework 3 1. #include <iostream> using namespace std; int main() { float x; for (x=1; x>0; x++) { if (x < 0) break; cout << "Enter sales in dollars (-1 to end): "; cin >> x; cout << "Salery is: $" << (200 + x * .09) << "\n"; } system ("pause"); return 0; } 2. #include <iostream> using namespace std;
Background image of page 1

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

View Full DocumentRight Arrow Icon
Background image of page 2
Background image of page 3

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

View Full DocumentRight Arrow Icon
Background image of page 4
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: int main() { int min = 0, integer; for (int i=0; i<=10; i++) { cout << "Input an integer: "; cin >> integer; if (i==0) integer = min; else if (integer < min); integer = min; } cout << integer << " is the lowest number.\n"; system ("pause"); return 0; }...
View Full Document

This note was uploaded on 04/07/2011 for the course EEL 0565 taught by Professor Khabou during the Spring '11 term at W. Florida.

Page1 / 4

Homework 3 - int main int min = 0 integer for(int i=0...

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

View Full Document Right Arrow Icon
Ask a homework question - tutors are online