Ticker

6/recent/ticker-posts

Moving Circle Program in C

 How to make the moving circle with the using of programming language C.

Code:

#include<stdio.h>
#include<conio.h>
#include<graphics.h>
#include<dos.h>
void main()
{
int i,gd,gm;
detectgraph(&gd,&gm);
initgraph(&gd,&gm,"..\\bgi");
for(i=1;i<100;i++)
{
clrscr();
circle(200+i,200,50);
delay(400);
}
getch();

}

OUTPUT


Post a Comment

0 Comments