{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Example2_28 - /Line 11 cout<< endl/Line 12...

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

View Full Document Right Arrow Icon
" #include <iostream> //Line 1 using namespace std; //Line 2 u const int NUMBER = 12; //Line 3 c int main() //Line 4 { //Line 5 int firstNum; //Line 6 int secondNum; //Line 7 firstNum = 18; //Line 8 cout << "Line 9: firstNum = " << firstNum << endl; //Line 9 cout << "Line 10: Enter an integer: "; //Line 10 cin >> secondNum;
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: //Line 11 cout << endl; //Line 12 cout << "Line 13: secondNum = " << secondNum << endl; //Line 13 firstNum = firstNum + NUMBER + 2 * secondNum; //Line 14 cout << "Line 15: The new value of " << "firstNum = " << firstNum << endl; //Line 15 return 0; //Line 16 } //Line 17...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online