+ 1
int x=8,y=5; int result x%y//res is 3
How is the result 3 why not 6 or 5 because I got 1.6
3 Respuestas
+ 2
% (modules) this operator is basically used for finding reminder. Here when 8 is divided by 5 then 3 will be reminder so it will result in 3
+ 2
You're right dear... it's 3..my calculator confused me