Program to draw peackock like colored feathers










Program to draw peackock like colored feathers


#include <graphics.h>
#include <dos.h>
#include <stdio.h>
#include <conio.h>

void main()
{

int d;
int m;
int x=100;
int y=200;
int r;


d=DETECT;

initgraph(&d,&m,"c:\\tc\\bgi");


while(!kbhit())
{
for(r=0;r<40;r++)
{


circle(x,y,r);
setcolor(r);
delay(20);
x++;
}
}

getch();

closegraph;

}

Output :

0 comments:

Post a Comment