Advertisement
Guest User

Untitled

a guest
Oct 31st, 2014
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3. float a, i, j;
  4. int main ()
  5. {
  6. cout << " Witam w programie liczacym pole kwadratu \n ";
  7. cout << endl;
  8. cout << " Podaj dl boku";
  9. cin >> a;
  10. if (a<2) cout << "Podaj inna wartosc";
  11.  
  12. else
  13. i=1;
  14. j=1;
  15.  
  16. for (i=0; i<a; i++)
  17. {
  18. for (j=0; j<a; j++)
  19. cout << "*";
  20. cout << endl;
  21. }
  22.  
  23. return 0;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement