Ads

HOLI WISHES IN C++ GRAPHICS PROGRAMMING | HAPPY HOLI IN C PROGRAMMING

 



 /*---------- WELCOME ALL OF YOU ON ROHIT TECH STUDY CHANNEL ---------------*/

//__________________ C++ PROGRAM TO WISH HAPPY HOLI________________________//


#include<stdio.h>

#include<conio.h>

#include<stdlib.h>

#include<dos.h>

#include<math.h>

#include<graphics.h>

void main()

{

clrscr();

int gd=DETECT,gm,i,x,y,j,k,l,m,n;

int A[10];

char ch;

initgraph(&gd,&gm,"C://tc//bgi");

x=getmaxx();

y=getmaxy();


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

{

setcolor(i);

for(m=0;m<25;m++)

{

j=random(y/6);

circle(x/2,y/5,j);

circle(x/6,y/2,j);

j=random(y/4);

circle(450,340,j);


rectangle(10,10,635,470);

rectangle(15,15,630,465);


settextstyle(1,0,7);

outtextxy(50,310,"HAPPY");


settextstyle(1,0,7);

outtextxy(40,380,"H O L I");


settextstyle(0,0,1);

outtextxy(380,25,"CREATED BY :- ROHIT TECH STUDY");


delay(40);

}

}

getch();

closegraph();

}





































Post a Comment

0 Comments