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

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 &lt;&lt; endl; //Line 12 cout &lt;&lt; &quot;Line 13: secondNum = &quot; &lt;&lt; secondNum &lt;&lt; endl; //Line 13 firstNum = firstNum + NUMBER + 2 * secondNum; //Line 14 cout &lt;&lt; &quot;Line 15: The new value of &quot; &lt;&lt; &quot;firstNum = &quot; &lt;&lt; firstNum &lt;&lt; endl; //Line 15 return 0; //Line 16 } //Line 17...
View Full Document

Ask a homework question - tutors are online