Computer Science, asked by seturastogi, 1 year ago

write a program in Java to check whether a number 65 is multiple of 5 or not if statement​

Answers

Answered by peterusiju12
0

Answer:

Public static void main (string [ ] args) {

int user 21;

if user (<=  18) {

System.out.println ("user is 18 or younger");

 }

else if ( user > 18 && user < 40) ; {

System.out.println ("user is between 19 and 39");

 }

else {

System .out.println ("user is older 40");

 }

}

Explanation:

Run your program and test it out. You should be able to guess what it will print out before running it. Because we have a value of 21 for the user variable the message between the curly brackets of else if will display in the Output window.

Similar questions