how to find modulus of a number in c#

c#

Solution

With the modulus operator %:

int x = 4545;
int mod = x % 16;

Problem

how to find modulus of a number in c# .net?

Original source