A C++ program to print TIRANGA

Hello frnds, here on the occasion of 15 Aug 2012, I made a program which prints our great TIRANGA flag
run it in TurboC/C++

#include"iostream.h"
#include"conio.h"
#include"graphics.h"

int main()
{
clrscr();
int gd=DETECT,gm;
initgraph(&gd,&gm,"");

setfillstyle(SOLID_FILL,22);
bar(0,0,800,100);

setfillstyle(SOLID_FILL,WHITE);
bar(0,100,800,200);
setcolor(BLUE);
circle(300,150,50);

//for(int i=20;i<=400;i=i+20)

line(300,150,250,150);
line(300,150,250,160);
line(300,150,255,170);
line(300,150,260,180);
line(300,150,270,190);
line(300,150,282,196);
line(300,150,294,200);
line(300,150,305,208);
line(300,150,320,218);
line(300,150,335,226);
line(300,150,335,188);
line(300,150,343,175);

line(300,150,251,135);
line(300,150,258,120);
line(300,150,269,110);
line(300,150,282,103);
line(300,150,295,100);
line(300,150,310,100);
line(300,150,329,107);
line(300,150,340,116);
line(300,150,346,128);
line(300,150,348,140);
line(300,150,350,154);
line(300,150,347,165);


setfillstyle(SOLID_FILL,GREEN);
bar(0,200,800,300);

getch();
return 0;
}

Popular Posts