Task 12 of 14 · 0 solved · 14 to go0%
You can read the problem, but answers are checked only for signed-in students. Sign in to answer →

1.4 Arithmetic — hypotenuse

Total: 0 / 3 pts
Practice mode — check each part and get hints as you go.
Task

A right triangle has sides 3 and 4. Print the length of its hypotenuse — the square root of the sum of the squares.

The program prints 5.0. Note the decimal point: Math.sqrt always gives a double.

Your solution