Homework 3 - int main() { int min = 0, integer; for (int...

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&lt;=10; i++) { cout &lt;&lt; &quot;Input an integer: &quot;; cin &gt;&gt; integer; if (i==0) integer = min; else if (integer &lt; min); integer = min; } cout &lt;&lt; integer &lt;&lt; &quot; is the lowest number.\n&quot;; system (&quot;pause&quot;); return 0; }...
View Full Document

Page1 / 4

Homework 3 - int main() { int min = 0, integer; for (int...

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