+ 1
I don't understand how a <0.7
https://code.sololearn.com/croQjY7ladBo/?ref=app float a =0.7 ,the condition if a<0.7 is approved how
2 Réponses
+ 7
You're comparing a float and a double. The value stored in the double isn't exactly 0.7, but something like 0.699825. If you change it to 0.700f, the values will be equal
+ 1
Anna thank you