Right triangle function: First, it should check whether it is a right triangle or not. If yes, then calculate the area of the triangle. And finally, display all details. (If it is not a right triangle, it should ask the user to enter correct values)
Distance of two points: Calculate the distance between two points.
Note: All of the functions get the input(s) from the user.