Bangladesh National Flag in C (graphics.h) How to draw bd flag in c?



Bangladesh National Flag in C (graphics.h) How to draw bd flag in c?
published by

1776


#include

#include

#include

#include

 

int main()

{

    int gd=DETECT,gm;

    initgraph(&gd,&gm,"C:\\T\\BGI");

    setbkcolor(YELLOW);

    setcolor(WHITE);

    rectangle(150,40,450,180);

    setfillstyle(1,GREEN);

    floodfill(160,50,WHITE);

    setcolor(WHITE);

    circle(300,110,55);

    setfillstyle(1,RED);

    floodfill(320,120,WHITE);

    setcolor(RED);

    outtextxy(200,250,"BANGLADESH NATIONAL FLAG");

    outtextxy(250,330,"BSc in CSE");

    for(int i=1,j=433;i<=433;i++,j--){

    outtextxy(1+i,310," Programmed BY HM JUBAYER ");

    outtextxy(1+j,350," Programmed BY HM JUBAYER ");

    _sleep(50);

 

    }

 

    getch();

}