Question: What output is produced by the following code fragment? int limit = 100, num1 = 15, num2 = 40; if (limit
What output is produced by the following code fragment?
int limit = 100, num1 = 15, num2 = 40;
if (limit <= limit)
{
if (num1 == num2)
System.out.println("lemon");
System.out.println("lime");
}
System.out.println("grape");
Step by Step Solution
3.44 Rating (157 Votes )
There are 3 Steps involved in it
The ... View full answer
Get step-by-step solutions from verified subject matter experts
