Question: Consider the following code segment. int a = 24; int b = 30; while (b != 0) { int r = a % b; a
Consider the following code segment.
int a = 24; int b = 30; while (b != 0) { int r = a % b; a = b; b = r; }
System.out.println (a);
What is printed as a result of executing the code segment?
Question 14 options:
| |||
| |||
| |||
| |||
|
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
