Rewrite the following code Snippet by using while
loop.
do
{
r=n% 10;
n = n/10;
System.out. Print In (r)
}
while (n!=0);
Answers
Answered by
3
while (n!=0)
{
r=n%10;
n=n/10;
system.out.println(r);
}
Similar questions