Home   Easy-Code    Forum  Updater 
Twitter Facebook



N circles using c graphics

Critics Rating:

Users Rating:

#include <stdio.h>

#include <graphics.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<15;i+=4)

{

circle(50,100,10+i);

circle(150,100,10+i);

circle(250,100,10+i);

circle(350,100,10+i);

circle(450,100,10+i);

circle(550,100,10+i);



circle(50,400,10+i);

circle(150,400,10+i);

circle(250,400,10+i);

circle(350,400,10+i);

circle(450,400,10+i);

circle(550,400,10+i);



circle(50,200,10+i);

circle(50,300,10+i);



circle(550,200,10+i);



circle(550,300,10+i);



delay(1000);

}

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

{

circle(50,100,10+i);

circle(150,100,10+i);

circle(250,100,10+i);

circle(350,100,10+i);

circle(450,100,10+i);

circle(550,100,10+i);



circle(50,400,10+i);

circle(150,400,10+i);

circle(250,400,10+i);

circle(350,400,10+i);

circle(450,400,10+i);

circle(550,400,10+i);



circle(50,200,10+i);

circle(50,300,10+i);



circle(550,200,10+i);

circle(550,300,10+i);



delay(1000);

}

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.