Question: Write a short macro in VBA to solve for the unknown side of a right triangle, given the lengths of the other two sides. Use
Write a short macro in VBA to solve for the unknown side of a right triangle, given the lengths of the other two sides. Use variables a, b, and c as the lengths of the three sides of the triangle, where the values for a and b are inputted using the InputBox command, and find c using the Pythagorean theorem. Output the value for c using MsgBox.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
