csharp Get Remainder

int myNumber = 101;
int remainder = myNumber / 10;
Console.WriteLine(remainder);// outputs 1
Calculates the remainder of a division.

Updated: Monday 23rd January 2012, 10:20am

There are 0 comments

Leave a comment of your own

Comments are currently closed.