what is the output of the following program?
{public static void main(string args[])
{int a=20, b=10;if((a<b)&&(b++<25)){
System.out.println("This is any language logic");
}
System.out.println(b);
}
}
Answers
Answered by
4
Output - "10"
Please Mark this as Brainliest
And Thank Me
Answered by
1
Question:-
Write the output of the following program.
Solution:-
Given code,
int a=20, b=10;
if((a<b)&&(b++<25)){
System.out.println("This is any language logic");
}
System.out.println(b);
Here, a<b is false. So, if statement will not execute.
The Statement following if will be executed.
So, b is printed.
Output:-
10
Similar questions