c# .math operators code example
Example: math operations in c#
Console.WriteLine("" + x);
Console.WriteLine("x +=" + (x += 5));
Console.WriteLine("x -=" + (x -= 5));
Console.WriteLine("x *=" + (x *= 5));
Console.WriteLine("x /=" + (x /= 5));
Console.WriteLine("x %=" + (x %= 3));
Console.WriteLine("x &=" + (x &= 5));
Console.WriteLine("x ^=" + (x ^= 5));
Console.WriteLine("x >>=" + (x >>= 5));
Console.WriteLine("x <<=" + (x <<= 5));