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