PhatPhuckDave

Circle

Feb 24th, 2017
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.43 KB | None | 0 0
  1. #include<cstdlib>
  2. #include<iostream>
  3. #include<winbgim.h>
  4. #include<iomanip>
  5. using namespace std;
  6. int main()
  7. {
  8.     int gdriver=9;
  9.     int gmode=2;
  10.     initgraph(&gdriver,&gmode,"");
  11.     setbkcolor(MAGENTA);
  12.     setcolor(YELLOW);
  13.     cleardevice();
  14.     for (int y=0;y<=480;y+=20)
  15.     {
  16.         for (int x=0;x<=720;x+=20)
  17.         {
  18.             circle(x,y,20);
  19.         }
  20.     }
  21.     getch();
  22.     closegraph();
  23.     return 0;
  24. }
Add Comment
Please, Sign In to add comment