MarcinKrol

Zad12

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