0
Assigment with C
Write program which calculates hypotenuse of right triangle, circumference of a right triangle, area of a right triangle if the legs are known.(real numbers). Some hints?
3 ответов
+ 1
If you are really new to C the use separate files for each problem else use a function.
1. calculates hypotenuse of a right triangle
Google how to find the hypotenuse of a triangle
create variables for all the variables (hypotenuse, opposite and adjacent) and use the formula to work out the hypotenuse
+ 1
Search about the math header, (math.h), it includes some mathematical functions like exponentiation, sine, tangent...
Here's a link:
https://en.cppreference.com/w/c/numeric/math
+ 1
Thank you Otumian Empire , Lucas Villani 💕