fork download
  1. #include <iostream>
  2.  
  3. int main() {
  4. int n = 0;
  5.  
  6. while (std::cin >> n) {
  7. std::cout << n << '\n';
  8. }
  9. }
Success #stdin #stdout 0s 3464KB
stdin
1
2
3
4
stdout
1
2
3
4