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 i=a;i>=1;i--)
- {
- for (int i=a;i>=1;i--)
- {
- cout << "*";
- }
- cout << endl;
- }
- }
- int main()
- {
- int a;
- cout << "Podaj liczbe naturalna z ktorej chcesz stworzyc kwadrat: ";
- cin >>a;
- KWADRAT(a);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement