Skip to main content
deleted 2 characters in body
Source Link
user100690
user100690

JavaScript, 7270 bytes

(a,b)=>`The=>'The hypotenuse of the triangle is ${'+((a*a+b*b)**.5).toFixed(3)}`

The latter function rounds the number to 3 decimal places.

JavaScript, 72 bytes

(a,b)=>`The hypotenuse of the triangle is ${((a*a+b*b)**.5).toFixed(3)}`

The latter function rounds the number to 3 decimal places.

JavaScript, 70 bytes

(a,b)=>'The hypotenuse of the triangle is '+((a*a+b*b)**.5).toFixed(3)

The latter function rounds the number to 3 decimal places.

Source Link
user100690
user100690

JavaScript, 72 bytes

(a,b)=>`The hypotenuse of the triangle is ${((a*a+b*b)**.5).toFixed(3)}`

The latter function rounds the number to 3 decimal places.