base convert by yuyarin

n;char*p;main(b,s){for(;~scanf("%d%d",&n,&b);puts(p))for(p=s+4;n;n/=b)*--p=n%b+48;}

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page