csansoon

P2.01 P37500 First numbers

Sep 19th, 2018
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.14 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4.  
  5. int main() {
  6.     int n;
  7.     cin >> n;
  8.     for ( int i=0 ; i <= n ; i++) {
  9.         cout << i << endl;
  10.     }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment