Write function d2x() that takes as input a nonnegative integer n (in the standard decimal representation) and an integer x between 2 and 9 and returns a string of digits that represents the base-x representation of n.

 

"Get 15% discount on your first 3 orders with us"
Use the following coupon
"FIRST15"

Order Now