0
Please give sample questions for else-if statements
simple questions for else if statement
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?");
+ 3
else-if it should normally be if-else
+ 2
if(2===2){
document.write("yes"); }
else
{
document.write("2 is not equals 2");. }