The mathematics teacher has recently taught the formula for computing the distance between 2 points to her students. She gave them an assignment on calculating the distance between the points. In order to prevent copying, she gave each student a different set of questions. But she found it very difficult to correct all 100 assignments. She seeks your help. Can you please help her out?
Given the vertices of a triangle ABC, determine the sides of the triangle AB, BC and AC. Can you write a program to calculate the sides? Input Format
Input consists of 6 integers. The first 2 integers correspond to the x-coordinate and y- coordinate of vertex A. The next 2 integers correspond to the x-coordinate and y- coordinate of vertex B. The next 2 integers correspond to the x-coordinate and y- coordinate of vertex C. Output format
Refer sample output for exact formatting and specifications.
Input
5 10
10 10
8 4
Output
Length of side AB is 5.0
Answers
Answered by
0
Answer:
okkkkkkkkkkk
Explanation:
Similar questions