Re: a java program that prints # then says whether the #...
Int number = 10 //Insert the number here
if ((number % 2) == 0) {
System.out.println(number+" is a even number);
} else {
System.out.println(number+" is a odd number);
{
Let me know if you need a complete java class for this
- If you need clarification, ask it in the comment box above.
- Better answers use proper spelling and grammar.
- Provide details, support with references or personal experience.
Tell us some more! Your answer needs to include more details to help people.You can't post answers that contain an email address.Please enter a valid email address.The email address entered is already associated to an account.Login to postPlease use English characters only.
Tip: The max point reward for answering a question is 15.
×