Programming Course for Beginners - ZedLX

The Easiest Online Computer Programming Course, for Free

Graph Drawing [3/9]

In this program, top (i.e. first) line ends are at coordinate y = 10, and the bottom (i.e. second) line ends are at y = 500.

The line function has the form:
line(x1, y1, x2, y2)

Exercise:

Exercise 10 output image

Change the program so that top (i.e. first) line ends are at coordinate y = i.

The solution is on the next slide.

Loading...