0
What is %??
I really dont understand what do the "%" do??? Thanks if someone help međ
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.