fork download
  1. // Level 1 - Homework 1 - Question A - Solution 1.
  2. #include <iostream>
  3.  
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8. int N = 0;
  9. cin >> N;
  10.  
  11. for(int i = 1; i <= N; i++)
  12. cout << i << endl;
  13.  
  14. return 0;
  15. }
Success #stdin #stdout 0.01s 5300KB
stdin
5
stdout
1
2
3
4
5