Computer Science, asked by harsika15, 10 months ago

please tell me the output​

Attachments:

Answers

Answered by Rahulsingh24597
0

Answer:

i think n=11 is answer

Explanation:

becoz m is not greater than 5 its equal to 5

similarly the n= 10 not greater than 10

so the else part runs and gives n+1=11

Answered by AskewTronics
0

NO Output:

Explanation:

  • The picture code is written in java language, which has the two if nested if case.
  • The external if case gives the false result because m is not greater than 5 and else statement is not given for the external if. hence the code will not give any output.
  • The internal if statement has the else statement because the external if statement has no curly braces which decide the scope of the external if statement.
  • When any if statement has no block then the only first line will be in the body of that if statement and the if and else have only one statement.

Learn More:

  • Java : https://brainly.in/question/13792074
Similar questions