0

Please give sample questions for else-if statements

simple questions for else if statement

15th Nov 2017, 3:47 AM
ajmal yousuf
ajmal yousuf - avatar
3 Answers
+ 7
What is the output of this code? int age = 18; if(age >= 18) System.out.print("Welcome!"); else if(age < 18) System.out.print("Too young"); else if(age > 100) System.out.print("Really?");
15th Nov 2017, 3:54 AM
qwerty
qwerty - avatar
+ 3
else-if it should normally be if-else
15th Nov 2017, 3:54 AM
Caleb Royer
Caleb Royer - avatar
+ 2
if(2===2){ document.write("yes"); } else { document.write("2 is not equals 2");. }
15th Nov 2017, 4:31 AM
᠌᠌Code X
᠌᠌Code X - avatar