Functions 5 – Pythagoras(1)

Construct a function that allows the user to enter the length of the two shortest sides of a right angled triangle. THe function should then calculate the length of the longest side and display the answer.

Scroll to Top