warmup0912 - cin>> score if(score< 99 score = score 2...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Warm-Up Problem What do you think this code does? #include <iostream> using namspace std; int main() { int score; // student's exam score (100-point scale) cout << "Enter score: ";
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: cin >> score; if(score < 99) { score = score + 2; } if(score == 99) { score = score + 1; } cout << "Score: " << score << endl; return 0; }...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online