hi,

int base_conv(unsigned short n,short r)

{

if(n<r)

return n;

int result = base_conv(n/r, r);

result *= 10;

result += n%r;

return result;

}

have a good programming day;

int base_conv(unsigned short n,short r)

{

if(n<r)

return n;

int result = base_conv(n/r, r);

result *= 10;

result += n%r;

return result;

}

have a good programming day;