Spring 2019--2020
Problem 2 (30 points):
Given the line equation: y=2x+1, a point with coordinates (x,y) is on
the line if the value of x and y satisfies the equation. For example,
the point A (4,9) is on the line y=2x+1, because 9=2*4+1.
Write a program that reads a set of five abscissas x from the user,
stores them in an array, then calculates the corresponding ordinates
y and displays the points. Use loop to iterate through the array.
Sample run:
Enter five abscissas x: 4 6 1 2 3
The coordinates (x,y) are (4,9) (6,13) (1,3) (2,5) (3,7)
Answer: