Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- float a, i, j;
- int main ()
- {
- cout << " Witam w programie liczacym pole kwadratu \n ";
- cout << endl;
- cout << " Podaj dl boku";
- cin >> a;
- if (a<2) cout << "Podaj inna wartosc";
- else
- i=1;
- j=1;
- for (i=0; i<a; i++)
- {
- for (j=0; j<a; j++)
- cout << "*";
- cout << endl;
- }
- return 0;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement