Question: Write the C program that calculates the area of a triangle whose points (x and y) are entered on the screen on the coordinate system.
Write the C program that calculates the area of a triangle whose points (x and y) are entered on the screen on the coordinate system. The program should read the values of 3 points from the screen in the main function. The function named triangleArea that takes the read values as parameters should return the field to the main function. The program should work according to the example study below.
| enter point one:0 0 enter point two:1 3 enter point three6 -2 -------------------------------- Region=10.00 |
| EX: |
| enter point one:2 5 enter point two:1 4 enter point three:-4 -8 -------------------------------- region=3.50 |
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
