Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- //Zad12
- using namespace std;
- int n;
- void KWADRAT(int gwizadki)
- {
- for(int i=1; i<=gwizadki ;i++)
- {
- cout << "*";
- }
- }
- int main()
- {
- cout << "Podaj liczbe gwiazdek: " << endl;
- cin >> n;
- cout << endl;
- for (int i=1;i<=n;i++)
- {
- KWADRAT(n);
- cout << endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment