Let us look at a few examples for integer division (remember that when we divide integers in C# the result is a whole number):

var a = 25;
Console.WriteLine(a / 4);  // Integer result: 6
Console.WriteLine(a / 0);  // Error: divide by 0

results matching ""

    No results matching ""