编程题:The hypotenuse of a right triangle
Input the two right sides(a and b)of a right triangle, and then output the length of its hypotenuse(c).
Rright triangle: $$a^{2}+b^{2}=c^{2}$$
### Input Specification:
Enter an integer in each of the two lines to represent the two right sides of a right triangle.
### Output Specification:
Output the corresponding hypotenuse side length in one line, keeping 2 decimal places.
### Sample Input #1:
in
3
4
### Sample Output #1:
out
5.00
### Sample Input #2:
in
6
6
### Sample Output #2:
out
8.49
答案:若无答案欢迎评论
Rright triangle: $$a^{2}+b^{2}=c^{2}$$
### Input Specification:
Enter an integer in each of the two lines to represent the two right sides of a right triangle.
### Output Specification:
Output the corresponding hypotenuse side length in one line, keeping 2 decimal places.
### Sample Input #1:
in
3
4
### Sample Output #1:
out
5.00
### Sample Input #2:
in
6
6
### Sample Output #2:
out
8.49
答案:若无答案欢迎评论