Home   Easy-Code    Forum  Updater 
Twitter Facebook



Circles using c graphics two

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())

{

settextstyle(1,0,7);

outtextxy(180,208,"KISHOREAVGK");

for (i=0;i<50;i+=4)

{

setcolor(random(7));

circle(80,100,10+i);

circle(80,400,10+i);

circle(550,100,10+i);

circle(550,400,10+i);

delay(500);

}

for (i=50;i>0;i-=2)

{

circle(80,100,10+i);

circle(80,400,10+i);

circle(550,100,10+i);

circle(550,400,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.