+ 5
C language: ex: c*9/5+32; if I give in input screen "5" gives 41.0000 float result! how it takes this result?
help understand calculate
9 Respuestas
+ 20
The result seems okay, it's supposed to be 41.
+ 10
sorry i can't C.
+ 8
there is no C language course in Sololearn and now i am focusing on python and ruby.
remember the Filip's books, i am reading it now.
about xp, it came from challenge, course, illuminati badge, code badge and moderator badge. and don't forget best answer mark poin.
https://www.sololearn.com/discuss/204501/?ref=app
+ 5
Since * and / have same precedence, operator coming first in the expression is solved first.
Taking your value and given value 5, we get
=5*9/5+32
=45/5+32.
=9+32
=41
+ 5
I think you wrote float ans = c*9/5+32; thats why answer is in float.
+ 4
Thanks Devender Mahajan understand me only
+ 2
why you so many xp you got, ! where from they are?
+ 2
arenot you interested on C? or not need
0
it should be 41
https://code.sololearn.com/cGVtyFVBDZ68/?ref=app