김우재

Yes exit

Showing 1 changed file with 3 additions and 0 deletions
...@@ -5,6 +5,9 @@ int main(){ ...@@ -5,6 +5,9 @@ int main(){
5 int n=-1; 5 int n=-1;
6 while(1){ 6 while(1){
7 cin>>n; 7 cin>>n;
8 + if(n == 0){
9 + return 0;
10 + }
8 cout<<n<<endl; 11 cout<<n<<endl;
9 } 12 }
10 } 13 }
......