what is if-else-if ladder? in java
Answers
Answered by
1
Answer:
Java if-else-if ladder is used to decide among multiple options. The if statements are executed from the top down. As soon as one of the conditions controlling the if is true, the statement associated with that if is executed, and the rest of the ladder is bypassed
Answered by
1
Answer:
if-else-Ladder means In Hindi agar magar
Explanation:
I will explain it clearly.
For eg:-
age=12:;
if (age>18)
{
system.out.println("You can vote");
}
else {
system.out.println("You cannot vote");
}
Explanation In Hindi:
agar age 18 se jyaada hai toh aap vote de sakte ho varna aap vote nahi de sakte
Similar questions