0

I don't understand the % on C#

im stupid, ik :/

1st Jan 2018, 10:36 PM
Daniel SĂĄ
Daniel SĂĄ - avatar
2 Answers
+ 1
It's the remainder of a division operation. 13 % 5 = 3 It is because 13 / 5 = 2 and remainder is 3. :) A simple use of % is to analyze if a n number can be divisible by 2 for example if n % 2 = 0
1st Jan 2018, 10:40 PM
SebastiĂĄn Zapata
SebastiĂĄn Zapata - avatar
0
Ohhhhhhhhhh :o
1st Jan 2018, 10:44 PM
Daniel SĂĄ
Daniel SĂĄ - avatar