Advertisement
Guest User

Untitled

a guest
Dec 10th, 2016
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. #include <iostream>
  2. #include <ctime>
  3. #include <string>
  4.  
  5.  
  6. using namespace std;
  7.  
  8. int wpKol;
  9. int wpWier;
  10. int nrWier=0;
  11. int nrKol=0;
  12.  
  13.  
  14.  
  15. void rysujWier()
  16. {
  17. for(int nrWier=1; nrWier<=wpWier; nrWier++)
  18. {
  19. cout << "_____|";
  20. }
  21.  
  22. }
  23.  
  24. void rysujKol()
  25. {
  26. for(int nrKol=1; nrKol<=wpKol; nrKol++)
  27. {
  28. cout << "| |";
  29. }
  30.  
  31.  
  32. }
  33. int main()
  34. {
  35. cout<<" Podaj liczbe wierszy: ";
  36. cin>>wpWier;
  37. cout<<" Podaj liczbe kolumn: ";
  38. cin>>wpKol;
  39. rysujWier();
  40. rysujKol();
  41.  
  42.  
  43.  
  44. return 0;
  45.  
  46. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement