change in do while and for loop
Attachments:
Answers
Answered by
1
Answer:
for(int x=0;i<=n;i++)
{
sum+=x%10;
x/=10;
}
Similar questions