Home   Easy-Code    Forum  Updater 
Twitter Facebook



Indian flag using c graphics

Critics Rating:

Users Rating:



       /* INDIAN NATIONAL FLAG */

#include <stdio.h>

#include <graphics.h>

#include <stdlib.h>

main()

{

int gd,gm,i,j=0;

clrscr();

gd=DETECT;

initgraph(&gd,&gm," ");

delay(5000);

setcolor(6);

rectangle(225,125,355,155);

while(j<=23)

{

for (i=0;i<123;i++)

outtextxy(225+i,125+j,"");

j++;

}

delay(5000);

setcolor(7);

rectangle(225,155,355,185);

j=0;

while(j<=23)

{

for (i=0;i<123;i++)

outtextxy(225+i,155+j,"");

j++;

}

delay(5000);

setcolor(2);

rectangle(225,185,355,215);

j=0;

while(j<=23)

{

for (i=0;i<123;i++)

outtextxy(225+i,185+j,"");

j++;

}

delay(5000);

setcolor(9);

rectangle(220,120,225,440);

j=0;

while(j<=312)

{

for (i=0;i<1;i++)

outtextxy(220+i,120+j,"");

j++;

}

delay(5000);

rectangle(200,440,245,450);

delay(5000);

rectangle(190,450,260,460);

delay(5000);

rectangle(175,460,275,470);

delay(5000);

circle(290,170,13);

delay(5000);

line(290,158,290,184);

delay(5000);

line(279,171,301,171);

delay(5000);

line(281,160,299,180);

delay(5000);

line(281,180,299,160);

delay(5000);

settextstyle(3,0,7);

delay(10000);

setcolor(5);

outtextxy(100,5,"I LOVE INDIA ");

delay(10000);

outtextxy(350,410,"KISHOREAVGK");

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.