Question: What will this small program output? int a = 1 8 ; int b = 2 0 ; int c = 1 8 ; int

What will this small program output?
int a =18;
int b =20;
int c =18;
int x =5;
if (a <= b || a < c){
x =10;
} else {
x =11;
}
System.out.print(x);

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!