Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 5
It's because in 2 / 3 are both integers, so the result will be an integer. 2 / 3 = 0, and dividing by 0 causes an error
27th Jun 2019, 1:49 PM
Airree
Airree - avatar