.) Convert the following for loop into a while loop:-
int d,b;
for(int a=564; b=1; a>0; a=a/10)
{
d=a%10;
System.out.println(d*b);
b++;
}
Answers
Answered by
0
a- 564:b-1a>a=a/10} d-a%10 = 564 + 1=565
Answered by
0
Explanation:
int d,b=1,a=564;
while(a>0)
{
a=a/10;
d=a%10;
S.o.pln (d*b);
b++;
}
Similar questions