Question 9 - Remainder question


#1

I need help on question 9. It says to have a remainder of 2 and I'm putting the code below 5/3 would have a remainder of 2 but it says error.

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

	int myRemainder 5 % 3 = 
	System.out.println(myRemainder);

}

}


#2

Try this:

int myRemainder = 5 % 3;
System.out.println(myRemainder);

#3

myRemainder doesn't have the value 2. Change the syntax here:

to:

int myRemainder = 5 % 3;


#4

2 % 24 that should work


#5

It did work! Thanks a ton!!


#6