You should try %d
instead of %o
. Because %o
will print octal integers and your expected answer is of base 10 (decimal).
solved Why my program is skipping the digit 8 and 9? [duplicate]
You should try %d
instead of %o
. Because %o
will print octal integers and your expected answer is of base 10 (decimal).
solved Why my program is skipping the digit 8 and 9? [duplicate]