- 1

Divisione by zero

when dividing by zero it doesn't give me an error, but the result is 8, why?

7th Nov 2017, 8:02 PM
Thrap
Thrap - avatar
4 ответов
+ 31
Show us your code.
7th Nov 2017, 8:04 PM
Igor Makarsky
Igor Makarsky - avatar
+ 3
{ double x = Convert.ToInt16(Console.ReadLine()); double y = Convert.ToInt16(Console.ReadLine()); double z = x / y; Console.WriteLine(z); } @Igor Makarsky @M Squared
7th Nov 2017, 8:07 PM
Thrap
Thrap - avatar
+ 3
oh, ok
7th Nov 2017, 8:17 PM
Thrap
Thrap - avatar
+ 3
thanks, I'll remember it
7th Nov 2017, 8:50 PM
Thrap
Thrap - avatar