+ 3

What does mean by (x%y) let x=9,y=5

arithmetic

9th Aug 2017, 4:46 AM
Ajay Gupta
Ajay Gupta - avatar
6 Respostas
+ 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
9th Aug 2017, 4:48 AM
Abdur-Rahmaan Janhangeer
Abdur-Rahmaan Janhangeer - avatar
+ 9
x%y, x = 9, y = 5, x%y = 9%5 = 4.
9th Aug 2017, 4:50 AM
Hatsy Rei
Hatsy Rei - avatar
+ 4
it give results of remainder 9%5=4
9th Aug 2017, 5:00 AM
Mrunali
Mrunali - avatar
+ 3
thank you
9th Aug 2017, 4:51 AM
Ajay Gupta
Ajay Gupta - avatar
+ 1
guys does it mean It some how works "like" the (-) operator??
3rd Sep 2017, 4:01 PM
Alphonse Wiraker
Alphonse Wiraker - avatar
+ 1
x%y,in %is modulo operator,so we get remainder in that case.9%5=4
19th Apr 2018, 11:53 AM
Rajesh Gurram