Advertisement
AndriikoM

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

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