Home > Back-end >  Brothers and sisters do you have any programming calculation will be the value of the expression, th
Brothers and sisters do you have any programming calculation will be the value of the expression, th

Time:10-13

The C language to calculate 5/2 + 3.6 + 1.2 + 5% 2 the value of the expression

CodePudding user response:

 # include 
Int main ()
{
Float f;
F=5.0/2;
Printf (" % f ", 3.6 + 5% f + 1.2 + 2);
return 0;
}

Not too specific requirements, writing a lot of ah

CodePudding user response:

The
reference 1 floor? Victor.?? Response:
 # include 
Int main ()
{
Float f;
F=5.0/2;
Printf (" % f ", 3.6 + 5% f + 1.2 + 2);
return 0;
}

Not too specific requirements, writing a lot of ah

Fioat represent what meaning ah I just started to learn simple good complex can't read

CodePudding user response:

refer to the second floor m0_46466604 response:
Quote: refer to 1st floor? Victor.?? Response:
 # include 
Int main ()
{
Float f;
F=5.0/2;
Printf (" % f ", 3.6 + 5% f + 1.2 + 2);
return 0;
}

Not too specific requirements, writing a lot of ah

Fioat represent what meaning ah I just started to learn simple good complex can't read

Float must be ah, (regardless of the double), or 5/2 will have to 2, the wrong, learn to understand, as to what is float, I suggest you still see the book about

CodePudding user response:

#include
Int main () {
Float f=5.0/2.0;
Printf (" % f ", 3.6 + 5% f + 1.2 + 2);
return 0;
}

CodePudding user response:

reference Xing reply: 4th floor wood soil
# include & lt; Studio. H>
Int main () {
Float f=5.0/2.0;
Printf (" % f ", 3.6 + 5% f + 1.2 + 2);
return 0;
}

Ok thank you thank you

CodePudding user response:

The integer division by 5/2 is a test, take the dealer's integer part,
5% 2 is another test, modulo, also is an integer,

CodePudding user response:

4.8?
  • Related