Question: in C Write a program to read in from keyboard two points (x1, y1) and (x2, y2). x1, y1, x2, y2 should have type double.

in C Write a program to read in from keyboard two points (x1, y1) and (x2, y2). x1, y1, x2, y2 should have type double. Calculate and print out the distance between the two points. Please print out the distance to only four digits after the decimal (see Section 2.7 Manipulating floating-point output). The calculation is: Distance = (21)/2 +(21)/2 Please check Section 2.10 for how to use the math functions sqrt, pow in the standard math library (#include ) to calculate the square root and power.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!