Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started