Advertisement
Guest User

Untitled

a guest
Dec 12th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. void rysujProstokatint(int l, int h)
  6.  
  7. {
  8. for(int wiersz(0); wiersz < h; wiersz++)
  9. {
  10. for(int kolumna(0); kolumna < l; kolumna++)
  11. {
  12. cout << "*";
  13. }
  14. cout << endl;
  15. }
  16. }
  17.  
  18.  
  19. int main()
  20. {
  21. cout << "gitara siema narysuje prostokat" << endl;
  22. cout << "Podaj ilosc kolumn: ";
  23. int l;
  24. cin >> l;
  25. cout << "Podaj ilosc wierszy: ";
  26. int h;
  27. cin >> h;
  28. cout << endl;
  29. rysujProstokatint(l,h);
  30. return 0;
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement