Modulo Q #9


I do not know "any two numbers that return a remainder value of 2."I don't know a way to figure out one.

public class Modulo {
	public static void main(String[] args) {

		int myRemainder = /*What should I enter??*/ ;


**PLEASE HELP ME ASAP. ** Thank you.


Hi Jenny,

It looks like ur confused on the concept of modulo

Modulo gives you the remainder after division.
Eg: 6 % 4 = 2 ... because when u divide, 6 by 4 gives you a quotient of 1 and a remainder of 2

The remainder is what we are really interested in when we use a modulo.


Thank you. Also I'm a Python master too. :stuck_out_tongue:


Glad I could help Jenny,


I think 12 % 10 works too. Maybe it's for every number that 2 is their difference


Yep, that is the way of thinking about it.


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.