fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // Input
  6. int n; cin >> n;
  7.  
  8. // Process -> Output
  9. for (int i = 1; i <= n; ++i)
  10. cout << i << ' ';
  11.  
  12. return 0;
  13. }
  14.  
  15.  
Success #stdin #stdout 0s 5328KB
stdin
10
stdout
1 2 3 4 5 6 7 8 9 10