Advertisement
Kacper_Michalak

Zadanie pętle 10

Dec 12th, 2020
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.33 KB | None | 0 0
  1.  
  2. #include <iostream>
  3. using namespace std;
  4. int main()
  5. {
  6.     int x, y;
  7.     int i,j;
  8.  
  9.     cout << "Podaj dlugosc pierwszego boku:" << endl;
  10.     cin >> x;
  11.     cout << "Podaj dlugosc drugiego boku: " << endl;
  12.     cin >> y;
  13.    
  14.     for (i = 0; i < x; i++)
  15.     {
  16.         cout <<"*";
  17.         for (j = 0; j < y; j++)
  18.         {
  19.             cout << "*";
  20.         }
  21.         cout << "\n";
  22.     }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement