C PROGRAM SOURCE CODE JAI MATA DI DOWNLOAD HERE:-
//___________ WELCOME ALL OF YOU ON ROHIT TECH STUDY CHANNEL ______________//
//_______________ C++PROGRAM TO WISH HAPPY NAVRATRI _____________________//
#include<stdio.h>
#include<conio.h>
#include<graphics.h>
#include<dos.h>
#include<stdlib.h>
#include<math.h>
void graphic();
void main()
{
graphic();
int i;
for(i=0;i<20;i++)
{
setcolor(i);
rectangle(10,10,630,442);
rectangle(12,12,628,440);
rectangle(14,14,626,438);
rectangle(16,16,624,436);
setcolor(i+1);
rectangle(18,18,622,434);
rectangle(20,20,620,432);
rectangle(22,22,618,430);
setcolor(i);
rectangle(24,24,616,428);
rectangle(26,26,614,426);
rectangle(28,26,612,424);
rectangle(30,26,610,422);
delay(200);
setcolor(i+1);
settextstyle(BOLD_FONT,HORIZ_DIR,7);
outtextxy(200,20,"JAI");
settextstyle(3,HORIZ_DIR,10);
outtextxy(150,120,"MATA");
settextstyle(BOLD_FONT,HORIZ_DIR,7);
outtextxy(230,250,"DI");
settextstyle(7,HORIZ_DIR,10);
outtextxy(350,250,"!");
delay(100);
}
graphic();
int j;
int x,y;
int color;
setlinestyle(0,0,1);
while(kbhit())
{
color=rand()%15+1;
settextstyle(3,HORIZ_DIR,5);
setcolor(color+3);
outtextxy(0,(getmaxy()/2)-100,"WISH YOU ALL A BLESSED");
outtextxy(80,(getmaxy()/2)-30,"HAPPY NAVRATRI !");
x=rand()%1366;
y=rand()%768;
for(i=768;i!=y;i--)
{
if(i%50==0)
delay(1);
putpixel(x,i,14);
}
for(i=768;i!=y;i--)
{
if(i%70==0)
delay(1);
putpixel(x,i,0);
}
for(j=0;j!=100;j+=5)
{
for(i=0;i!=360;i+=15)
{
setcolor(color);
line(x,y,x+j*cos(3.14/180*i),y+j*sin(i*3.14/180));
}
}
setcolor(0);
for(j=0;j!=100;j++)
{
for(i=0;i!=360;i+=15)
line(x,y,x+j*cos(3.14/180*i),y+j*sin(i*3.14/180));
}
}
getch();
closegraph();
}
void graphic()
{
int gd=DETECT,gm;
initgraph(&gd,&gm,"C:\\TC\\BGI");
}
0 Comments