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