KarolWozniak

Zadanie 12

Mar 31st, 2020
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.33 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int liczba1;
  6.  
  7. void KWADRAT(int a)
  8. {
  9.     for(int i=1; i<=a;i++)
  10.     {
  11.         cout << "\n";
  12.         for(int i=1; i<=a;i++)
  13.         {
  14.             cout << "*";
  15.         }
  16.     }
  17. }
  18.  
  19. int main()
  20. {
  21.     cout << "Podaj liczbe: ";
  22.     cin >> liczba1;
  23.     KWADRAT(liczba1);
  24.     return 0;
  25. }
Add Comment
Please, Sign In to add comment