- 3

Print(-4%3)

Suggest your answer with reason! :)

28th Mar 2020, 2:11 PM
Programmer
Programmer - avatar
2 Answers
+ 2
This is not the place for this kind of post. This forum is for Q&A. Please post this to your own page instead. 👍 https://www.sololearn.com/Discuss/1316935/?ref=app
28th Mar 2020, 2:21 PM
Russ
Russ - avatar
+ 2
The answer should be 2 as -4//3 is -2 (because floor division of x returns the largest integer less than or equal to x) so for -1.3333 , it will be converted to -2 as it is less than -1.33 So the remainder left is 2 hence the result. here is the proof on code playground đŸ‘šđŸŒâ€đŸ’»đŸ‘‡ https://code.sololearn.com/cOfmC5v5qkxh/?ref=app
28th Mar 2020, 2:27 PM
Arsenic
Arsenic - avatar