fork download
  1. #include <bits/stdc++.h>
  2. #define ll long long
  3. using namespace std;
  4. int main()
  5. {
  6. ll n ;
  7. cin >> n ;
  8. for ( ll i= 1 ; i<= n ; i ++ )
  9. { cout << i << ' ' ; }
  10. return 0;
  11. }
Success #stdin #stdout 0s 5320KB
stdin
5
stdout
1 2 3 4 5