9/12


#1



9/12


i cant get the dividing correct normaly 10 divided by 5 is 2


Replace this line with your code.


#2

Lesson

You are asked to do modulo operation (find remainder of dividing).

The modulo operator - represented in Java by the % symbol - returns the remainder of dividing two numbers.

For example, 10 % 3 = 1, because 10 = 3 * 3 + 1. 10 gives remainder equal 1 when dividing by 3.
You must provide such example, which will return remainder equal 2.


#3

14 % 6 it leaves remainder 2 but no answer


#4

Could you describe more your problem and paste the code?


#5

now i get that its asked for but still isnt ' 11 % 3 ' is 2 ?

Modulo.java:4: error: ';' expected
int myRemainder = 11 % 3
^
1 error

oh i found out you need to finish sentence


#6

Your error message told you what you need to change :wink:


#7

i dont get it heres my code

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

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

}

}