Showing
1 changed file
with
10 additions
and
3 deletions
1 | 1 | ||
2 | #include<iostream> | 2 | #include<iostream> |
3 | +#include<string> | ||
3 | using namespace std; | 4 | using namespace std; |
4 | 5 | ||
5 | int main() { | 6 | int main() { |
6 | 7 | ||
7 | - cout << "숫자를 입력해주세요"; | 8 | + cout << "ÀÔ·Â : " << endl << "(if you enter 'exit', the program will exit)"; |
8 | - int a; | 9 | + string a; |
9 | cin >> a; | 10 | cin >> a; |
11 | + if (a == "exit") | ||
12 | + { | ||
13 | + return 0; | ||
14 | + } | ||
15 | + else | ||
16 | + { | ||
10 | cout << "Ãâ·Â : " << a; | 17 | cout << "Ãâ·Â : " << a; |
11 | - | 18 | + } |
12 | return 0; | 19 | return 0; |
13 | } | 20 | } | ... | ... |
-
Please register or login to post a comment