Write the syntax of Nested - if in java
Answers
Answered by
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
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
Math,
3 months ago
Hindi,
3 months ago
History,
1 year ago
Political Science,
1 year ago
History,
1 year ago