ya bro.... i know that...just forgot to write .....but when i am writing it then also its not working...
#include<stdio.h>
#include<conio.h>
#include<dos.h>
#include<graphics.h>
void main()
{
int i,x=0;
int gd=DETECT,gm;
float r,y,xinc=1,yinc=0.75;
initgraph(&gd,&gm,"C:\\TC\\bgi");
setfillstyle(1,4);
setcolor(4);
y=getmaxy()/2;
printf("\nEnter the radious=>");
scanf("%f",&r);
while(!kbhit())
{
setcolor(4);
circle(x,y,r);
floodfill(x,y,4);
if(x+r>=getmaxx())
xinc=-1.0;
if(x-r<=0)
xinc=1.0;
x=x+xinc;
if(y+r>=getmaxy())
yinc=-0.75;
if(y-r<=0)
yinc=0.75;
y=y+yinc;
delay(10);
cleardevice();
}
getch();
}
this is also not working...
