Mudolu operator


I wrote 17%3 and 5%3 but it keeps saying (error the remainder must equal 2)
What’s is wrong
Cause I think it’s wright

Math: % - Why do I get an error?

Should I use limited numbers or I am allowed to use all numbers .
I need answer please


myRemainder =5%3;
When they asked me for reminder equal 2
Is it wright. .cause they told me so


please include your full code, any error messages, maybe a screenshot? Anything that can help us see the issue



Java code can’t run without a class and its main method, where are they? Look at the error message in the output window

You first print the variable, then you define the variable, that doesn’t work. How is Java suppose to know what it needs to print for myRemainder?

You first need to define a variable before you can print it




A post was split to a new topic: Uncomment