Question: Consider the following code segment? } else if c = b ; } else { c = b + ( a - ( b %

Consider the following code segment?
} else if
c=b;
} else {
c=b+(a-(b%a))
}
System.out.println(c);
What is the output if a=5 and b=13?
16
14
5
None of the other answers
13
 Consider the following code segment? } else if c=b; } else

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!