loop - case -1: odd++ Sheet1 Page 2 } } cout...

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

View Full Document Right Arrow Icon
Sheet1 Page 1 LOOP # include <iostream> # include <string> using namespace std int main() { int counter int num int odd = 0 int even = 0 cout << "Please enter 10 numbers:" << endl for (counter = 1 { cin >> num { case 0: even++ break case 1:
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: case -1: odd++ Sheet1 Page 2 } } cout &lt;&lt; endl cout &lt;&lt; &quot;There are &quot; &lt;&lt; even &lt;&lt; &quot; even numbers, &quot; &lt;&lt; &quot;and &quot; &lt;&lt; odd &lt;&lt; &quot; odd numbers.&quot; &lt;&lt; endl return 0 } Sheet1 Page 3 counter &lt;= 10 counter++) Sheet1 Page 4...
View Full Document

Page1 / 4

loop - case -1: odd++ Sheet1 Page 2 } } cout...

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