+ 1

The answer of (25/5)//3 is 1.0 although we use // we got the answer in float. why it so???

14th Feb 2018, 11:49 AM
Gagan Gowdru
Gagan Gowdru - avatar
2 ответов
+ 1
// has nothing to do with float or int.. 25/5 is a float 3 is an int.. float operator int = float if u do 5//3....it mans...int operator int...so ans is 1 5//3 = int(5/3)
14th Feb 2018, 12:24 PM
sayan chandra
sayan chandra - avatar