0
Division
Doing an exercise I was asked to answer Print((4+8)/2) The answer was not 6 The answer was 6.0 Could someone please explain why?
1 ответ
+ 2
When arithmetic expression uses floor division ("/") it returns a floating point value. If you want to return an integer value you have to use integer division("//") instead of floor division("/").