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 l=0; l<a; l++)
- {
- for(int i=0; i<a; i++)
- {
- cout << "*";
- }
- cout << endl;
- }
- }
- int main()
- {
- KWADRAT(3);
- cout << endl;
- KWADRAT(5);
- cout << endl;
- KWADRAT(7);
- cout << endl;
- KWADRAT(15);
- cout << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement