Choose Category
#include<stdio.h> #include<conio.h> #include<graphics.h> #include<math.h> #include<stdlib.h> void main() { int gd=DETECT,gm,choice; while(1) { printf("\n 0.Empty file"); printf("\n 1.Solid fill"); printf("\n 2.Line fill"); printf("\n 3.LT Slash fill"); printf("\n 4.Slash fill"); printf("\n 5.BK Slash fill"); printf("\n 6.LT BK Slash fill"); printf("\n 7.Hatch fill"); printf("\n 8.XHacth fill"); printf("\n 9.Interleave fill"); printf("\n 10.Wide dot fill"); printf("\n 11.Close dot fill"); printf("\n 12.User fill"); printf("\n Enter your choice:"); scanf("%d",&choice); if(choice>=0&&choice<=12) { clrscr(); initgraph(&gd,&gm,"c:\\turboc3\\bgi"); setfillstyle(choice,RED); circle(100,100,50); floodfill(100,100,WHITE); getch(); closegraph(); } else exit(0); } }