DIFFERENT SHAPES

#include<stdio.h>
#include<conio.h>
#include<graphics.h>
main()
{
int gd=DETECT,gm,left=100,top=100,right=100,bottom=100;
int x=300,y=150,radius=50;
initgraph(&gd,&gm," ");
rectangle(left,top,right,bottom);
circle(x,y,radius);
bar(left+300,top,right+500,bottom);
line(left+10,top+150,left+410,top+150);
ellipse(x,y+200,0,360,100,50);
outtextxy(left+100,top+325,"MY FIRST C PROGRAM");
getch();
closegraph();
return 0;
}


OUTPUT:



Comments

POPULAR POSTS

POPULAR POSTS