Question 3
(a) Write the output of the following code:
int z = 125;
while(z > 1)
z=z/10;
System.out.println(z);
Answers
Answered by
1
Answer:
output:
12
1
Explanation:
125/10=12
12/10=1
Similar questions