Advertisement
Pappu19

Flag

Sep 21st, 2021
964
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.41 KB | None | 0 0
  1. #include<stdio.h>
  2. #include<graphics.h>
  3.  
  4. int main()
  5. {
  6.     int gd = DETECT,gm;
  7.     initgraph(&gd, &gm, "");
  8.  
  9.     setcolor(GREEN);
  10.     rectangle(150,40,450,180);
  11.     setfillstyle(1,2);
  12.     floodfill(160,160,GREEN);
  13.  
  14.  
  15.     setcolor(RED);
  16.     circle(300,110,50);
  17.     setfillstyle(1,4);
  18.     floodfill(300,110,RED);
  19.  
  20.     setcolor(YELLOW);
  21.     line(150,40,150,450);
  22.  
  23.     getch();
  24.     closegraph();
  25. }
  26.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement