Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #include<graphics.h>
- int main()
- {
- int gd = DETECT,gm;
- initgraph(&gd, &gm, "");
- setcolor(GREEN);
- rectangle(150,40,450,180);
- setfillstyle(1,2);
- floodfill(160,160,GREEN);
- setcolor(RED);
- circle(300,110,50);
- setfillstyle(1,4);
- floodfill(300,110,RED);
- setcolor(YELLOW);
- line(150,40,150,450);
- getch();
- closegraph();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement