Quote Originally Posted by jdouglass View Post
I am very new to programming and need to write a code to use input. An example input is 5.1, 8.3, 12.2, 8.4 and the expected output is:

Enter x1 and x2.
You entered x1 as 5.10 and x2 as 8.30.
Enter y1 and y2.
You entered y1 as 12.20 and y2 as 8.40.

From the lower-left point clockwise,
the points of the trapezoid are:
(5.10, 0.00)
(5.10, 12.20)
(8.30, 8.40)
(8.30, 0.00)
The area of the trapezoid is 32.96 units.
Introduction to C - Cprogramming.com