Functions and Output

Write a program that given two points, prints the equation of a line passing through them, and the x and y intercepts of that line.