Advertisement
MichalWalczak

Zad 12

Mar 28th, 2020
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.30 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4. int x;
  5. int KWADRAT(int a){
  6. for(int i=0; i<a; i++){
  7.     for(int j=0; j<a; j++){
  8.         cout<<"*";
  9.     }
  10.     cout << endl;
  11. }
  12. }
  13.  
  14.  
  15.  
  16. int main()
  17. {
  18.  
  19.  
  20.     cout << "Wpisz wymiar boku kwadratu" << endl;
  21.     cin>>x;
  22.     KWADRAT(x);
  23.     return 0;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement