{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

loop - case-1 odd Sheet1 Page 2 cout<< endl...

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 Document Right 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 Document Right 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 << endl cout << "There are " << even << " even numbers, " << "and " << odd << " odd numbers." << endl return 0 } Sheet1 Page 3 counter <= 10 counter++) Sheet1 Page 4...
View Full Document

{[ snackBarMessage ]}

Page1 / 4

loop - case-1 odd Sheet1 Page 2 cout<< endl...

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

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