fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. int n;
  7. do{
  8. cin>>n;
  9. cout<<n;
  10. }while(n!=0);
  11. return 0;
  12. }
Success #stdin #stdout 0.01s 5288KB
stdin
5
3
5
7
56
0
6
stdout
5357560