Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- void KWADRAT(int d)
- {
- int a;
- int b=0;
- do{
- for(a=0;a!=d;a++)
- {
- cout<<"*";
- }
- cout <<endl;
- b++;
- }
- while(b<d);
- }
- int main()
- {
- int liczba;
- cout << "Podaj liczbe ktora bedzie bokiem kwadratu: ";
- cin >> liczba;
- KWADRAT(liczba);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement