my_putnbr displays number according to the base passed as argument