0

please help java

Fill in the blanks to print "You rock!" if variable "a" is greater than 15, and variable "b" is less than or equal to 72. int a = 144; int b = 33; if (a > 15 b <= ) { System.out.println("You rock!"); }

22nd Oct 2022, 4:29 PM
mesuli mkhize
mesuli mkhize - avatar
3 Answers
+ 2
mesuli mkhize Check the syntax of if else and How to check two different condition together
22nd Oct 2022, 4:44 PM
AĶ¢J
AĶ¢J - avatar
+ 3
// Try it if (a>15 && b<=72) System.out.println("You rock!");
22nd Oct 2022, 4:46 PM
SoloProg
SoloProg - avatar
+ 3
Please put Java in post tags to signify it as the relevant programming language name. https://code.sololearn.com/W3uiji9X28C1/?ref=app
22nd Oct 2022, 6:06 PM
Ipang