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
Science,
1 month ago
Science,
1 month ago
History,
9 months ago
Political Science,
9 months ago
History,
9 months ago