MeehoweCK

Untitled

Aug 24th, 2019
265
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.24 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     int n;
  8.     cin >> n;
  9.     cout << "Podano liczbe " << n << endl;
  10.  
  11.     int i = 1;
  12.     while(i <= n)
  13.     {
  14.         cout << i << endl;
  15.         ++i;
  16.     }
  17.  
  18.     return 0;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment