Computer Science, asked by latadeysarkar123, 3 months ago

.) 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 anil1486
0

a- 564:b-1a>a=a/10} d-a%10 = 564 + 1=565

Answered by dasalpana687
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