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