Decimal to octal

it is just printing the first digit. rest are not taking in consideration.why

Checking your code and also adding few comments for understanding. Till then be patient

1 Like

Hey @lovely there were lots of mistake but no need to be upset about that. Just work hard everyone faces difficulty in beginning of programming as i also faced lots of difficulty while understanding programming fundamentals. Here’s your edited code with comments attached :smile:https://ide.codingblocks.com/s/360804

ya ,thanks for the explanation actually i was implementing logic on singledigits instead of storing them as a total.