convert into for loop :
int n, d, s=0;
n=15;
while(n>0)
{
d=n%10;
s=s+d;
n--;
}
Answers
Answered by
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