/************ WELCOME ALL OF YOU ON ROHIT TECH STUDY CHANNEL **************/
/*----------------- ASHOK CHAKRA IN C++ PROGRAMMING ----------------------*/
#include<stdio.h>
#include<conio.h>
#include<math.h>
#include<dos.h>
#include<graphics.h>
void main()
{
int gd=DETECT,gm,x0,y0,x1,y1,x2,y2,r=150;
float a;
initgraph(&gd,&gm,"c://tc//bgi");
x0=getmaxx()/2;
y0=getmaxy()/2;
setbkcolor(15);
setcolor(2);
settextstyle(1,0,7);
outtextxy(90,400,"ASHOK CHAKRA");
for(int j=0;j<180;j+=15)
{
a=3.14*j/180;
x1=x0+r*cos(a);
y1=y0-r*sin(a);
x2=x0-r*cos(a);
y2=y0+r*sin(a);
setcolor(1);
circle(x0,y0,r);
line(x1,y1,x2,y2);
circle(x0+1,y0+1,r);
line(x1+1,y1+1,x2+1,y2+1);
circle(x0+2,y0+2,r);
line(x1+2,y1+2,x2+2,y2+2);
}
getch();
closegraph();
}
//___________________________________________________________________________
/*------------- LIKE _________ SHARE __________ SUBSCRIBE ----------------*/
0 Comments