it is just printing the first digit. rest are not taking in consideration.why
Decimal to octal
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 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.