Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <ctime>
- #include <string>
- using namespace std;
- int wpKol;
- int wpWier;
- int nrWier=0;
- int nrKol=0;
- void rysujWier()
- {
- for(int nrWier=1; nrWier<=wpWier; nrWier++)
- {
- cout << "_____|";
- }
- }
- void rysujKol()
- {
- for(int nrKol=1; nrKol<=wpKol; nrKol++)
- {
- cout << "| |";
- }
- }
- int main()
- {
- cout<<" Podaj liczbe wierszy: ";
- cin>>wpWier;
- cout<<" Podaj liczbe kolumn: ";
- cin>>wpKol;
- rysujWier();
- rysujKol();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement