I have to print out 2 digit numbers (00, 01, 02, 03,... ,10, 11,..99
) i.e. from 00 to 99
using only one integer and function putchar()
.
In ASCII table, these are signs from 0x30
(0) to 0x39
(9).
Also i may only use stdio.h
library.
Output example:
00
01
02
03
...(all the way to 99)
99
Which operation would you suggest to make this possible?
I already made working solution but I had to use two integers (one from first part of 2 digit number, and other for second). But this is not allowed.