Advertisement
PiotrSzewczyk

Zad 12

Mar 31st, 2020
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.29 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. void kwadrat(int x)
  5. {
  6.    for(int j=1;j<=x;j++)
  7.    {
  8.       for(int i=1;i<=x;i++)
  9.       cout<<"*";
  10.       cout<<endl;
  11.    }
  12. }
  13.  
  14. int main ()
  15. {
  16.     int x;
  17.     cout<<"podaj dana liczbe x"<<endl;
  18.     cin>>x;
  19.     kwadrat(x);
  20.     return 0;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement