LANGUAGE
Integer division
With int operands the quotient truncates toward zero. A zero divisor is invalid; cast an operand before division for a fractional result.
Formal Syntax & Structure
csharp syntaxcsharp
a / bWorking Example
Example Snippetcsharp
int quotient = 17 / 5; // 3