Write a Program to draw Railway in C

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

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

   initgraph(&gd,&gm,"C:\\turboc3\\bgi");
   outtextxy(300,60,"A Railway");

   setcolor(YELLOW);

   rectangle(280,80,400,120);

   circle(290,140,20);
   circle(390,140,20);

   getch();
   closegraph();

   return 0;
}





Previous
Next Post »