The symbols are the usual ones: + - * /, plus % for the remainder.
Program.cs
using System;
class Program
{
static void Main()
{
int a = 17;
int b = 5;
Console.WriteLine(a + b);
Console.WriteLine(a / b);
Console.WriteLine(a % b);
}
}
Output
22 3 2
Integer division truncates
17 / 5 is 3, not 3.4 — two integers give an integer and the remainder is discarded. Use 17.0 / 5 when you want 3.4.
% gives what is left over: 17 % 5 is 2. It is how you test whether a number is even (n % 2 == 0).