Candy men Using Graphics

Candy Men



Source Code :-

#include<stdio.h>
#include<conio.h>
#include<graphics.h>
#include<stdlib.h>

int main()
{
int adp=0,xy;
initgraph(&adp,&xy,"..//bgi");
cleardevice();
setbkcolor(4);

circle(100,150,25);
rectangle(90,175,110,225);
rectangle(90,225,100,240);
rectangle(100,225,110,240);
line(95,240,95,260);
line(105,240,105,260);
circle(90,258,5);
circle(110,258,5);
line(130,190,90,200);
line(130,190,110,200);
circle(130,190,4);
setfillstyle(1,0);
sector(100,150,60,200,25,25);

getch();


}

No comments:

Post a Comment