Describe the purpose of a function. Explain itssyntactical structure as well as how it is called. Provide an example of a function that computes and returnsthe hypotenuse of a right triangle and inputs the two smaller sidesinto it. Make a call to the function and store thehypotenuse in a separate variable.
hypotenuse = side1² + side2²
Describe the purpose of a function. Explain its syntactical structure as well as how it is called. Provide an exampl
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am