Computer Science, asked by rishabhsaxena9642, 2 months ago


8. What will be the output of following code ? Do keep in mind the indentation / braces
int x = 9;
int y = 8;
int z = 7;
if ( x > 9)
if (y > 8)
System. out .println( "x> 9 and y >8");
else if ( z >=7)
System.out.println( "x <=9 and z >=7");
else
System .out.println("x <=9 and z< 7");​

Answers

Answered by chitransh7nigam
3

Answer:

Second statement will be printed.

x<=9 and z>=7

Similar questions