Write a Program to draw Rectangle in C

/*Rectangle*/
#include<stdio.h>
#include<conio.h>
#include<graphics.h>

int main()
{
   int gm,gd=DETECT;

   initgraph(&gd,&gm,"C:\\turboc3\\bgi");

   outtextxy(300,170,"Rectangle");
   rectangle(300,190,380,230);


   getch();
   closegraph();
   return 0;
}

Previous
Next Post »