Question: What will be printed for d by the following program segment? a=20; b=30; c=10; if (a>b && a>c) d=a; else if (b>a && b>c) d=b;

What will be printed for d by the following program segment? a=20; b=30; c=10; if (a>b && a>c) d=a; else if (b>a && b>c) d=b; else if (c>a && c > b) d=c; System.out.print(d);

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!