Advertisement
AndriikoM

Лекція 2, завдання 2

Oct 17th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.23 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main ()
  6. {
  7.     int a;
  8.     int b;
  9.     cout << "vvedit chislo: ";
  10.     cin >> a;
  11.     b=0;
  12.     while (b<a+1)
  13.     {
  14.         cout << b;
  15.         cout << " ";
  16.         b++;
  17.     }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement