Program to Print a line

#include<stdio.h>
#include<conio.h>
#include<graphics.h>

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


   initgraph(&gm,&gd,"");
  line(100,100,500,100);
  getch();
}

Leave a Reply