C language: find the area of a triangle

Simple c
Today is the second day, and I have finished reading Chapter 3.
Given the length of the three sides of the triangle, find the area of ​​the triangle. Insert picture description hereInsert picture description hereHere, we can write the program very simply based on the simple triangle mathematical calculation formula, but the difference from the previous one is that there is a math.h and %lf new things, which will be written in the following blog.
Now let’s add what functions are included in the math.h file:

  1. int abs (int x): find the absolute value of the integer x
  2. double fabs (double x): find the absolute value of x
  3. double cos (double x): find the value of cos (x)
  4. double exp (double x): find the value of x in e
  5. double floor (double x): find the largest integer not greater than x
  6. double log(double x):求ln(x)
  7. double log10(double x)
  8. double pow (double x, double y): Calculate the value of x times y
  9. double sqrt (double x): calculate the root number

Guess you like

Origin blog.csdn.net/m0_52405419/article/details/115330313