This file contains hidden or 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() { | |
// 1부터 10까지 출력하는 프로그램 | |
int i = 1; // 초기값 | |
while (i <= 10) { // 조건 | |
cout << i << endl; // 해야할 일 | |
i++; // 변경 | |
} |
This file contains hidden or 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() { | |
// 1부터 10까지 출력하는 프로그램 | |
int i = 1; // 초기값 | |
while (i <= 10) { // 조건 | |
cout << i << endl; // 해야할 일 | |
i++; // 변경 |
This file contains hidden or 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 a = 5; | |
cout << a++ << endl; | |
cout << a << endl; | |
a = 5; | |
cout << ++a << endl; |
This file contains hidden or 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 a = 5; | |
a = 6; // a에 6을 넣는다 | |
a = a + 1; // a에 a+1을 넣는다 a=7 | |
a++; // a의 값을 1 증가시킨다 a=8 | |
++a; // a의 값을 1 증가시킨다 a=9 | |
a += 1; // a = a + 1와 같음 a=10 |
This file contains hidden or 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 a, b, c; | |
cin >> a >> b >> c; | |
if (a + b == c) { | |
cout << "a+b == c"; | |
} else { |
This file contains hidden or 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 a, b, c; | |
cin >> a >> b >> c; | |
if (a == b && b == c) { // AND | |
cout << "세 수가 같음"; | |
} else { |
This file contains hidden or 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 a, b; | |
cin >> a >> b; | |
if (a == b) { | |
cout << "같다" << endl; | |
} else if (a < b) { | |
cout << "작다" << endl; |
This file contains hidden or 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 a, b; | |
cin >> a >> b; | |
if (a == b) { | |
cout << "같다" << endl; | |
} |
This file contains hidden or 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 a, b; | |
cin >> a >> b; | |
if (a < b) { | |
cout << "작다" << endl; | |
} |
This file contains hidden or 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
from bs4 import BeautifulSoup | |
soup = BeautifulSoup(open('seat.html')) | |
print soup |