Computer Science, asked by biswanathdash123nill, 2 months ago

convert into for loop :

int n, d, s=0;
n=15;
while(n>0)
{
d=n%10;
s=s+d;
n--;
}​

Answers

Answered by manojshaw1002
0

Answer:

int n, d=0, s=0;

for(n=15;n> 0;n--)

{

d=n%10;

s=s+d;

}

Explanation:

here's ur answer

Similar questions