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?

29th Nov 2020, 6:42 PM
Katarina Stanojković
Katarina Stanojković - avatar
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
29th Nov 2020, 7:51 PM
Otumian Empire
Otumian Empire - avatar
+ 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
29th Nov 2020, 11:47 PM
Lucas Villani
Lucas Villani - avatar
+ 1
Thank you Otumian Empire , Lucas Villani 💕
30th Nov 2020, 6:00 AM
Katarina Stanojković
Katarina Stanojković - avatar