Home   Easy-Code    Forum  Updater 
Twitter Facebook



Circle using c graphics

Critics Rating:

Users Rating:

#include <stdio.h>

#include <graphics.h>

#include <stdlib.h>

main()

{

int gd,gm,i;

gd=DETECT;

initgraph(&gd,&gm," ");

while(!kbhit())

{

setcolor(random(9));

settextstyle(1,0,7);

outtextxy(180,208,"KISHOREAVGK");

for (i=0;i<150;i+=5)

{

circle(320,240,10+i);

delay(500);

}

cleardevice();

settextstyle(1,0,7);

outtextxy(180,208,"KISHOREAVGK");

setcolor(random(7));

for (i=150;i>0;i-=5)

{

circle(320,240,10+i);

delay(500);

}

cleardevice();

}

getch();

}

Courtesy, Source, References & Regards: Kishore AVGK

While using this site, you agree to have read and accepted our terms of use and privacy policy.
Copyright@2009-2011 by KuGuNi.com. All Rights Reserved.