Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int a,b,c;
- void kwadrat(int a)
- {
- int b=0, c=0;
- while(b<a)
- {
- while(c<a)
- {cout << "*";
- c++;}
- cout << endl;
- c=0;
- b++;
- }
- }
- int main()
- {
- cout<<"podaj liczbe naturalna"<<endl;
- cin>>a;
- kwadrat(a);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment