Computer Science, asked by the7epic7gamer7, 8 days ago



int a=15, b=10;

if(x>70)

{

If(x<80)

a+=b;

}

else

a-=b;

System.out.println(a);

What will be the output of the value of x is – (i) 65 (ii) 90​

Answers

Answered by rampyari01
0

Answer:

ok

65 is the answer

Explanation:

Answered by vedantkeote
0

i) 55.

ii) 80.

this is because 80 is smaller than 90 so the second loop is false

Similar questions