How to input and output correctly

Updated on technology 2024-04-24
10 answers
  1. Anonymous users2024-02-08

    Today's information is changing rapidly. The results output before and after the system are inconsistent, which means that the information has been updated.

  2. Anonymous users2024-02-07

    %e is a standard exponent that outputs single and double precision numbers.

    The ** you wrote directly wrote 200000 without any numerical type of instructions.

    If you have to write it the way you write it, add it after 200,000.

    printf("%e",200000.);

  3. Anonymous users2024-02-06

    e Exponential output of single and double precision real numbers e Exponential output of single and double precision real numbers f Output of single and double precision real numbers as decimal g Output of single and double real numbers in the shorter output width of %f%e, %e format is used when the exponent is less than -4 or greater than or equal to precision.

    g Outputs single and double precision real numbers at the shorter output width of %f%e, and the %e format is used when the exponent is less than -4 or greater than or equal to precision.

  4. Anonymous users2024-02-05

    Both are used for floating-point outputs.

    where %e output is in the form of scientific notation, such as the form of output.

    %g is an intelligent way to compare the output according to the numerical value and the output of scientific notation, which is shorter, for the comparison.

    And which is shorter, obviously yes, so when outputting with %g, it will be output.

    Therefore, it is normal to output floating-point numbers with %e and %g to get different results, that is, the output of the decimal form is more concise than the output of the scientific notation form.

  5. Anonymous users2024-02-04

    %g retains a maximum of 6 significant digits.

  6. Anonymous users2024-02-03

    2 He Fuchu, the winner of the "May Fourth Medal for Chinese Youth" and academician of the Chinese Academy of Sciences, the highest honor for Chinese youth, said in a discussion with the capital college students that I am not confused, and my biggest confusion is the four words - "input" and "output".Before people enter the society, they need the "input" of the society to the individual; However, when you master a certain amount of technology and knowledge, you should "export" to the society when you go out of school, and you must "export" to the society, and "export" for the prosperity of the country and the happiness of the people

    1) What is the meaning of "input" and "output" in the material? (2 points).

    2) How to understand "should be exported to society" and "must be exported to society"?(5 points).

    3) In practice, how should we treat "input" and "output" correctly?(4 points).

    3 (1) The "input" in the material is the requisition, that is, the satisfaction of the society's needs for the survival and development of the individual. "Output" is contribution, that is, the responsibility and contribution of individuals to society. (2 points).

    2) A person "should export to society", because "output" is a requirement for the existence and development of society. Only by contributing to the society and creating more wealth for the society can individuals survive and develop. (2 points) A person also "must be exported to society" because the true value of life lies in its contribution to society.

    People are not only the creators of value, but also the enjoyers of value. People live in society, always need to rely on the wealth created by others to meet their various needs, therefore, everyone should use their own labor to create material wealth and spiritual wealth, repay the society, and satisfy others. An individual's responsibility and contribution to society is the basic symbol of the value of life, and a person can only realize his or her life value by contributing to society.

    3) In practice, we should pay attention to "input", make full use of the favorable conditions provided by the society, and constantly improve personal quality; At the same time, we should also have a sense of social responsibility, strive to "output", make more contributions to the society, and realize the value of life.

  7. Anonymous users2024-02-02

    The decimal change of the decimal system in the decimal system of the calculation machine has a tail truncation error and becomes a clear spike.

    float a; scanf("%e",&a);Input, 6-7 significant digits.

    Output printf("%2f",a+ ;

    Or enter an envy statement with %f

  8. Anonymous users2024-02-01

    In the C language, it here %e is to format the output in the form of exponentials, which is expressed using scientific notation, and the following e+ or something is the exponent of the number you want to output, there is no range limit, you can be 13 to the power or 24 to the power. There's no difference between +001 and +002 or something like that.

  9. Anonymous users2024-01-31

    Because c c++ defaults to inter constants, which are expressed by complements; The corresponding control character %e is interpreted according to the floating-point number representation rule (sign bit + order code + mantissa original code), so it is wrong. If printf("%e",float(10));or printf("%e",double(10));That's right.

  10. Anonymous users2024-01-30

    Change the printf function to printf("%g",x);Try it, the %g specifier can make the output value omit the useless 0 after it.

Related questions
3 answers2024-04-24

There are a variety of interfaces supported by TV connection audio, namely audio interface, S PDIF interface, HDMI interface and RCA interface, etc. >>>More

14 answers2024-04-24

chopping | rounding

Floating-point numbers are like sand in your hands, always inadvertently trying to flow away a little. >>>More

19 answers2024-04-24

Choose the graphics card first,Most graphics cards are connected to the display with dual interface design24-pin digital signal interface and 15-pin analog signal interface,There is also an HDMI output input interface,When you connect to the current display,You can buy an adapter as needed。

5 answers2024-04-24

MCU, all IO ports can be used as input and output, but not at the same time >>>More

9 answers2024-04-24

1.If you have a VGA and HDMI port, you can use them to connect to your TV. >>>More