Created
April 20, 2012 01:59
-
-
Save kdmkdmkdm/2425291 to your computer and use it in GitHub Desktop.
forLoop C++
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 "stdafx.h" | |
#include <iostream> | |
using namespace std; | |
int main() { | |
for(int cnt1 = 0, int cnt2 = 9; cnt1 < 10; ++cnt1, --cnt2) { | |
cout << cnt1 << "---Hello, World!---" << cnt2 << endl; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment