Wednesday, August 22, 2012

Draw Concentric Circle in C

No comments

Source Code:


#include<graphics.h>
#include<conio.h>
int main ()
    {
      int gd=DETECT,gm;
      int i;
      initgraph(&gd,&gm,"c:/tc/bgi");
      for(i=0;i<100;i=i+9)
     {
         circle(100,100,i);
         circle(300,300,i);


}
  getch();
closegraph();
return 0;
}




Output:


0 comments:

Post a Comment

Entries RSS Comments RSS

Sample Text

Pages


Copyright © Lovely Codes
Powered by Blogger
Distributed By Free Blogger Templates | Design by N.Design Studio
Blogger Theme by Lasantha - PremiumBloggerTemplates.com