- 1
Divisione by zero
when dividing by zero it doesn't give me an error, but the result is 8, why?
4 ответов
+ 31
Show us your code.
+ 3
{
double x = Convert.ToInt16(Console.ReadLine());
double y = Convert.ToInt16(Console.ReadLine());
double z = x / y;
Console.WriteLine(z);
}
@Igor Makarsky @M Squared
+ 3
oh, ok
+ 3
thanks, I'll remember it