+ 3
What does mean by (x%y) let x=9,y=5
arithmetic
6 odpowiedzi
+ 5
% is the modulo operator
it can be assumed as finding remainder
(tip :different results for negative in diff langs)
9%5 gives out 4
+ 9
x%y, x = 9, y = 5,
x%y = 9%5 = 4.
+ 4
it give results of remainder 9%5=4
+ 3
thank you
+ 1
guys does it mean It some how works "like" the (-) operator??
+ 1
x%y,in %is modulo operator,so we get remainder in that case.9%5=4