Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // base code file
- #include"Ryo.h"
- main()
- {
- // write code here
- int boxnumber;
- int numboxes = 5;
- int boxwidth = 10;
- int boxheight = 4;
- for(boxnumber=0;boxnumber<numboxes;boxnumber++)
- {
- drawbox(0,0,boxwidth,boxheight,'$');
- cout << endl;
- }
- for(boxnumber=0;boxnumber<numboxes;boxnumber++)
- {
- drawbox(0,5,boxwidth,boxheight,'$');
- cout << endl;
- }
- for(boxnumber=0;boxnumber<numboxes;boxnumber++)
- {
- drawbox(0,10,boxwidth,boxheight,'$');
- cout << endl;
- }
- for(boxnumber=0;boxnumber<numboxes;boxnumber++)
- {
- drawbox(0,15,boxwidth,boxheight,'$');
- cout << endl;
- }
- for(boxnumber=0;boxnumber<numboxes;boxnumber++)
- {
- drawbox(0,20,boxwidth,boxheight,'$');
- cout << endl;
- }
- // leave the following line in all programs
- getch();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement