Skip to content

Instantly share code, notes, and snippets.

@kdmkdmkdm
Created April 20, 2012 01:59
Show Gist options
  • Save kdmkdmkdm/2425291 to your computer and use it in GitHub Desktop.
Save kdmkdmkdm/2425291 to your computer and use it in GitHub Desktop.
forLoop C++
#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