Modulo Q #9


#1




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??*/ ;
		System.out.println(myRemainder);

	}
}

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


#2

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.


#3

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


#4

Glad I could help Jenny,
-PythonMaster


#5

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


#6

Yep, that is the way of thinking about it.


#7

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