i want to write a code that changes the base b of a number
for example :
124 can be written as 01444 in base of 5
112 can be written as 01300 in base of 4
the input should be a numbe x in decimal base and a new base b
the output should be the number x in base b
Best Answer