//............. WELCOME ALL OF YOU ON ROHIT TECH STUDY CHANNEL ............//
/*.................... C++ PROGRAM TO CREATE CLOUD .......................*/
#include<stdio.h>
#include<conio.h>
#include<graphics.h>
void main()
{
int gm,gd=DETECT;
initgraph(&gd,&gm,"c://tc//bgi");
// 1th cloud
setcolor(15);
setfillstyle(SOLID_FILL,11);
ellipse(100,50,0,180,25,20);
ellipse(125,70,260,90,20,20);
ellipse(100,90,180,360,20,20);
ellipse(80,70,90,270,20,20);
floodfill(140,70,15);
// 2nd cloud
setcolor(15);
setfillstyle(SOLID_FILL,9);
ellipse(200,200,0,180,25,20);
ellipse(225,220,260,90,20,20);
ellipse(200,240,180,360,20,20);
ellipse(180,220,90,270,20,20);
floodfill(200,220,15);
//3rd cloud
setcolor(15);
setfillstyle(SOLID_FILL,3);
ellipse(80,150,0,180,30,25);
ellipse(110,175,285,90,40,30);
ellipse(95,205,210,360,25,30);
ellipse(60,195,180,300,30,30);
ellipse(50,175,85,235,30,25);
floodfill(80,185,15);
//4th colud
setcolor(15);
setfillstyle(SOLID_FILL,15);
ellipse(320,105,0,180,30,25);
ellipse(350,130,285,90,40,30);
ellipse(335,160,210,360,25,30);
ellipse(300,150,180,300,30,30);
ellipse(290,130,85,235,30,25);
floodfill(320,140,15);
//5th cloud
setcolor(15);
setfillstyle(SOLID_FILL,1);
ellipse(500,105,0,180,30,25);
ellipse(530,130,285,90,40,30);
ellipse(515,160,210,360,25,30);
ellipse(480,150,180,300,30,30);
ellipse(470,130,85,235,30,25);
floodfill(500,140,15);
setcolor(10);
settextstyle(3,0,2);
outtextxy(250,310,":- ( ROHIT TECH STUDY )");
getch();
closegraph();
}
//_______________--- I HOPE YOU LIKE THIS PROGRAMMING ---__________________
//__________________ LIKE ______ SHARE ___________ SUBSCRIBE ____________
0 Comments