Computer Science, asked by hirangipatel2012, 3 months ago

Write the syntax of Nested - if in java​

Answers

Answered by Anonymous
2

Explanation:

Syntax. The syntax for a nested if...else is as follows − if(Boolean_expression 1) { // Executes when the Boolean expression 1 is true if(Boolean_expression 2) { // Executes when the Boolean expression 2 is true } } ...

Example. Live Demo. ...

Output. X = 30 and Y = 10.

Answered by dkhokher133
1

Answer:

nested if statement in java

Syntax. The syntax for a nested if...else is as follows − if(Boolean_expression 1) { // Executes when the Boolean expression 1 is true if(Boolean_expression 2) { // Executes when the Boolean expression 2 is true } } ...

Example. Live Demo. ...

Output. X = 30 and Y = 10.

Explanation:

hope it is helpful...

Similar questions