C Program To Create A JUG

#include<constream.h>
#include<graphics.h>
#include<dos.h>
void main(){
 int gm, gd = DETECT;
 initgraph(&gd,&gm,"e:\\tc\\bgi");
cleardevice();
int scol,srow,ecol,erow,i,j,col,row;
settextstyle(10,0,5);
outtextxy(210,10,"JUG");
ellipse(270,130,0,360,35,10);
ellipse(270,130,0,360,34,9);
ellipse(270,130,0,360,1,0);
ellipse(270,130,0,360,2,1);

line(235,132,235,230);
setcolor(4);

row=229;
for(i=1;i<=50;i++){
line(236,row,304,row);
row--;
}

setcolor(15);
line(250,139,250,230);
line(270,140,270,230);
line(290,139,290,230);
line(305,132,305,230);

 line(235,230,305,230);
 rectangle(255,230,285,237);
 rectangle(235,155,225,200);
 rectangle(235,153,223,202);
setcolor(2);
row=231;
for(i=1;i<=6;i++){
 line(256,row,284,row);
 row++;
 }



 getch();
  getch();
}
Bhanu Namikaze

Bhanu Namikaze is an Ethical Hacker, Security Analyst, Blogger, Web Developer and a Mechanical Engineer. He Enjoys writing articles, Blogging, Debugging Errors and Capture the Flags. Enjoy Learning; There is Nothing Like Absolute Defeat - Try and try until you Succeed.

No comments:

Post a Comment