Created
April 20, 2011 02:03
-
-
Save SeanPlusPlus/930200 to your computer and use it in GitHub Desktop.
Loop With Postfix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
using namespace std; | |
int main() | |
{ | |
int TOTAL = 9; | |
for ( int i = 0 ; i < TOTAL ; i++ ) | |
{ | |
cout << "i: " << i << endl; | |
} | |
return 0; | |
} | |
/* SAMPLE OUTPUT: | |
* | |
* i: 0 | |
* i: 1 | |
* i: 2 | |
* i: 3 | |
* i: 4 | |
* i: 5 | |
* i: 6 | |
* i: 7 | |
* i: 8 | |
* | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment