d. long y = 8383;
do
p = y%10;
System.out.println(p);
y=y/100;
} while y> 0);
Answers
Answered by
1
Answer:
3
3
Explanation:
1st iteration
value of p = y%10 = 3 // printed
value of y= 83
condition is checked // condition is true
2nd iteration
p = 3 // printed
y=0
condition is checked // condition is false
//loop ends
Similar questions