how to print 10 modulo 7 in java?
Answers
Answered by
0
Answer:
int x = 10%7
Explanation:
Answered by
1
module operator gives the remaining remainder.
you can write like this:
int i = 10 % 7
this will return 3 as answer.
hope it helps.
Similar questions