0

Modulo operator

Remainder as a output It is denoted by % In math calculation (5%2)= 1 ==(2*2[divisor] + 1[rem] ) (16%3)=1 ==1(3*5[divisor]+ 1[rem])

10th Nov 2016, 12:06 PM
Rànjith Karnati
Rànjith Karnati - avatar
1 Antwort
0
the first is wrong because 5/2=2 with remainder 1 (2*2 + 1)
10th Nov 2016, 12:50 PM
Leo Flame
Leo Flame - avatar