Advertisement
RyoMaeda

Box Method

Nov 21st, 2019
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.80 KB | None | 0 0
  1. // base code file
  2. #include"Ryo.h"
  3. main()
  4. {
  5.   // write code here
  6.  
  7.     int boxnumber;
  8.     int numboxes = 5;
  9.     int boxwidth = 10;
  10.     int boxheight = 4;
  11.  
  12.     for(boxnumber=0;boxnumber<numboxes;boxnumber++)
  13.     {
  14.         drawbox(0,0,boxwidth,boxheight,'$');
  15.         cout << endl;
  16.     }
  17.         for(boxnumber=0;boxnumber<numboxes;boxnumber++)
  18.     {
  19.         drawbox(0,5,boxwidth,boxheight,'$');
  20.         cout << endl;
  21.     }
  22.             for(boxnumber=0;boxnumber<numboxes;boxnumber++)
  23.     {
  24.         drawbox(0,10,boxwidth,boxheight,'$');
  25.         cout << endl;
  26.     }
  27.             for(boxnumber=0;boxnumber<numboxes;boxnumber++)
  28.     {
  29.         drawbox(0,15,boxwidth,boxheight,'$');
  30.         cout << endl;
  31.     }
  32.             for(boxnumber=0;boxnumber<numboxes;boxnumber++)
  33.     {
  34.         drawbox(0,20,boxwidth,boxheight,'$');
  35.         cout << endl;
  36.     }
  37.  
  38.  
  39.   // leave the following line in all programs
  40.  
  41.       getch();
  42. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement