Math, asked by dayanakumar309, 5 hours ago

write a robo basic program to draw a line with co-ordinates as (0299) and (600 480) and also draw the output​

Answers

Answered by antildaksh70
1

Answer:

library is used to include and facilitate graphical operations in program. graphics.h functions can be used to draw different shapes, display text in different fonts, change colors and many more. Using functions of graphics.h you can make graphics programs, animations, projects and games. You can draw circles, lines, rectangles, bars and many other geometrical figures. You can change their colors using the available functions and fill them.

Examples:

For line 1, Input : x1 = 150, y1 = 150, x2 = 450, y2 = 150

For line 2, Input : x1 = 150, y1 = 200, x2 = 450, y2 = 200

For line 2, Input : x1 = 150, y1 = 250, x2 = 450, y2 = 250

Similar questions