0

I don't understand the % on C#

im stupid, ik :/

1st Jan 2018, 10:36 PM
Daniel Sá
Daniel Sá - avatar
2 Respostas
+ 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