-
The base and high area of the simple input triangle are presented as follows:
#include ""
void main()
float a = 0;
float h = 0;
printf("Please enter the base edge length of the triangle:");
scanf("%f",&a);
while (a <= 0)
printf("The value you entered is incorrect, please re-enter:");
scanf("%f",&a);
printf("Please enter the height of the triangle");
scanf("%f",&h);
while (h <= 0)
printf("The value you entered is incorrect, please re-enter:");
scanf("%f",&h);
printf("The area of the triangle is: %f",a*h/2);
1. C language is a general-purpose computer programming language with a wide range of applications. C is designed to provide a programming language that can compile in a simple way, handle low-level memory, generate a small amount of machine code, and run without any runtime support.
2. Although the C language provides many low-level processing functions, it still maintains a good cross-platform characteristic, and the C language program written with a standard specification can be compiled on many computer platforms, and even includes some embedded processors (single-chip microcomputers or MCUs) and supercomputers and other operating platforms.
3. In the eighties of the twentieth century, in order to avoid the differences in the C language grammar used by various developers, the National Bureau of Standards of the United States formulated a complete set of international standard grammar for the C language, called ANSI C, as the initial standard of the C language.
-
Autohome New Vehicle**] As a Japanese luxury brand, Lexus has a good sales situation in China with the good performance of ES, RX and other models. As for the current LS, which is a flagship model, it is almost unpopular due to overpricing and old models. Fortunately, this situation may be about to be broken, and the all-new LS with a unique feel has recently arrived in stores and will be available on January 11th.
Let's take a look at the performance of the domestic version of LS in various aspects.
Autohome New Vehicle**] As a Japanese luxury brand, Lexus has a good sales situation in China with the good performance of ES, RX and other models. As for the current LS, which is a flagship model, it is almost unpopular due to overpricing and old models. Fortunately, this situation may be about to be broken, and the all-new LS with a unique feel has recently arrived in stores and will be available on January 11th.
Let's take a look at the performance of the domestic version of LS in various aspects.
-
Find the area of a triangle using a trigonometric function: s=absinc 2. A triangle is a closed figure composed of three line segments in the same plane that are not on the same straight line in order to end, which has applications in mathematics and architecture.
Common triangles are divided into ordinary triangles (the three sides are not equal) and isosceles triangles (isosceles triangles with unequal waists and bases, and isosceles triangles with equal waists and bottoms, that is, equilateral triangles).
Trigonometric function is one of the basic elementary functions, which is a function in which the angle (the most commonly used radian system in mathematics, the same below) is the independent variable, and the angle corresponds to the coordinate of the final edge of any angle and the intersection point of the unit circle or its ratio as the dependent variable. It can also be defined equivalently in terms of the length of the various line segments related to the unit circle. Trigonometric functions play an important role in the study of the properties of geometric shapes such as triangles and circles, and are also a fundamental mathematical tool for the study of periodic phenomena.
In mathematical analysis, trigonometric functions are also defined as infinite series or solutions to specific differential equations, allowing their values to be extended to arbitrary real values, even complex values.
Such questions can be cut and patched.
Combine the numbers to make the graph, then place the triangle in a rectangle (the three vertices of the triangle are on the sides of the rectangle), and subtract the other small triangles from the rectangle to get the required triangle area. >>>More
Use the Pythagorean theorem b 2 = c 2-a 2 to find the length of b and then use the sine theorem. >>>More
。。Forehead.. I was a napkin... It's so troublesome... Tie a knot at the back of your neck... Pretty good.
The corresponding angles of congruent triangles are equal. >>>More