0

What is %??

I really dont understand what do the "%" do??? Thanks if someone help me🙂

6th Feb 2017, 9:34 PM
Viggo Richter
Viggo Richter - avatar
1 Answer
+ 4
In C# it means: The modulus operator (%) is informally known as the remainder operator because it returns the remainder of an integer division. int x = 15 % 6 //Outputs 3 because 15 / 6 = 2 since (2 * 6 = 12) and the remainder is 3 Hope this helps.
6th Feb 2017, 9:47 PM
Saơo Jovanović