Write a program to draw a line using graphics function.

This answer is restricted. Please login to view the answer of this question.

Login Now
#include<stdio.h>
#include <graphics.h>

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

    initgraph(&gd, &gm, "C:\\TC\\BGI");

    line(100, 100, 200, 200);

    closegraph();
    return 0;
}
If you found any type of error on the answer then please mention on the comment or report an answer or submit your new answer.
Leave your Answer:

Click here to submit your answer.

Discussion
0 Comments
  Loading . . .