Showing
1 changed file
with
10 additions
and
3 deletions
| ... | @@ -6,13 +6,20 @@ using namespace std; | ... | @@ -6,13 +6,20 @@ using namespace std; |
| 6 | 6 | ||
| 7 | int main(){ | 7 | int main(){ |
| 8 | 8 | ||
| 9 | - int a; | 9 | + string a; |
| 10 | - cout<<"입력하세요 쓰고싶은 숫자 : " ; | 10 | + cout<<"입력하세요 쓰고싶은 단어 : " ; |
| 11 | cin>>a; | 11 | cin>>a; |
| 12 | 12 | ||
| 13 | - cout<<"당신이 입력한 숫자는 "<<a<<" 입니다"<<endl; | 13 | + if( a=="exit") |
| 14 | + exit(100); | ||
| 14 | 15 | ||
| 15 | 16 | ||
| 17 | + else{ | ||
| 18 | + | ||
| 19 | + | ||
| 20 | + cout<<"당신이 입력한 단어는 <"<<a<<" >입니다"<<endl; | ||
| 21 | + } | ||
| 22 | + | ||
| 16 | 23 | ||
| 17 | 24 | ||
| 18 | return 0; | 25 | return 0; | ... | ... |
-
Please register or login to post a comment