Skip to content

Instantly share code, notes, and snippets.

@Baekjoon
Last active August 29, 2015 14:21
Show Gist options
  • Save Baekjoon/c0bc1aace1f0f6158e2e to your computer and use it in GitHub Desktop.
Save Baekjoon/c0bc1aace1f0f6158e2e to your computer and use it in GitHub Desktop.
7.cpp
#include <iostream>
using namespace std;
int main() {
// 1부터 10까지 출력하는 프로그램
int i = 1; // 초기값
while (i <= 10) { // 조건
cout << i << endl; // 해야할 일
i++; // 변경
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment