fork download
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main(void)
  6. {
  7. cin.tie(NULL);
  8. ios::sync_with_stdio(false);
  9.  
  10. int N;
  11. cin >> N;
  12.  
  13. for(int i = N; i > 0; i--)
  14. cout << i << '\n';
  15.  
  16. return 0;
  17. }
Success #stdin #stdout 0s 4372KB
stdin
5
stdout
5
4
3
2
1