Advertisement
GabrielRuta

zad 12

Mar 30th, 2020
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4. void KWADRAT (int a)
  5. {
  6. for (int b=0;b<a;b++)
  7. {
  8. for(int c=0;c<a;c++)
  9. {
  10. cout <<"*";
  11. }
  12. cout<< endl;
  13. }
  14.  
  15.  
  16. }
  17. int main()
  18. { KWADRAT(4);
  19. KWADRAT(6);
  20. int a;
  21. cout << "podaj wielkosc" << endl;
  22. cin >> a;
  23. KWADRAT(a);
  24. return 0;
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement