I'm supposed to :
1. Write a function “distance” that takes four arguments corresponding to the Cartesian Coordinates of two points (x1, y1) and (x2, y2), and returns the distance between the two points.
- Call your function from a main program (write a complete program)
- Your program should execute iteratively till a Sentinel value is types
2. Write a function LCD (Least common divisor) that takes as input three integers, and returns the least common divisor of the three integers.
- Call your function from a main program (write a complete program)
- Your program should execute iteratively till a Sentinel value is types
1. Write a function “distance” that takes four arguments corresponding to the Cartesian Coordinates of two points (x1, y1) and (x2, y2), and returns the distance between the two points.
- Call your function from a main program (write a complete program)
- Your program should execute iteratively till a Sentinel value is types
2. Write a function LCD (Least common divisor) that takes as input three integers, and returns the least common divisor of the three integers.
- Call your function from a main program (write a complete program)
- Your program should execute iteratively till a Sentinel value is types
Comment