Advertisement
WiktorJagielski

Zad 12

Mar 30th, 2020
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. #include <iostream>
  2.  
  3.  
  4. using namespace std;
  5.  
  6. void KWADRAT(int a)
  7. {
  8. for (int i=a;i>=1;i--)
  9. {
  10. for (int i=a;i>=1;i--)
  11. {
  12. cout << "*";
  13.  
  14. }
  15. cout << endl;
  16. }
  17.  
  18. }
  19. int main()
  20. {
  21. int a;
  22. cout << "Podaj liczbe naturalna z ktorej chcesz stworzyc kwadrat: ";
  23. cin >>a;
  24. KWADRAT(a);
  25.  
  26.  
  27.  
  28. return 0;
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement