Advertisement
LukaszPanko

Zadanie 12

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