braces - cout << "i...

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

View Full Document Right Arrow Icon
// braces.cpp / #include <iostream.h> int main() { int i; // declare an integer for the loop for(i = 1; i <= 3; i++) { cout << i << '\n'; if(i == 3) { cout << "This is the last time\n";
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: cout &lt;&lt; &quot;i equals three\n&quot;; } // end of if statement } // end of for loop return 0; } // end of main function...
View Full Document

This note was uploaded on 06/20/2011 for the course COMPUTER 12 taught by Professor Aymanboghdady during the Spring '11 term at American College of Computer & Information Sciences.

Ask a homework question - tutors are online