Computer Science, asked by muhfahadkhalidiis901, 2 days ago

what is the value of the following expression? float(32//6+5/5)​

Answers

Answered by neelubharti7889
1

Answer:The answer is 6 .

Explanation:32/6=5

5/5=1

5+1=6

Answered by purveshKolhe
3

\huge{\green{\underbrace{\overbrace{\blue{\mathfrak{answer::}}}}}}

What is float?

==> Floats are decimal numbers.

\sf{\underline{0utput::}}

6.0

\sf{\underline{Logic::}}

  • Precedence is division, then multiplication, then addition and subtraction.
  • 32 // 6 = 5 ==> // is used for float division.
  • 5 / 5 = 1 ==> / is used for normal division
  • 5 + 1 = 6 ==> Since we've got both LHS and RHS.
  • Float() ==> Converts integer to float. So 6 changes to 6.0

I hope that I have explained you all the steps properly and correctly, sorry if something is wrong or missing...

Hope This Helps...

Similar questions