Computer Science, asked by buntysingh1979bunty, 6 months ago

(i) What will be the output of the following code after execution?
[2]
int x= 10;
int y=12;
if (x>10 && y>10)
{
System.out.println(true);
}
else
{
System.out.println(false);
}​

Answers

Answered by aman4236
2

Answer:

int Output = 10;

boolean b1 = false;

if((b1 == true) && ((Output += 10) == 20))

{

System.out.println("We are equal " + Output);

}

else

{

System.out.println("Not equal! " + Output);

}

Similar questions