【C】#小乐乐与进制转换#
小乐乐与进制转换
https://www.nowcoder.com/practice/242eafef2a704c0ca130d563b7b3ee2d
#include <stdio.h> long six(int n){ if(n == 0) return 0; else return n % 6 + six(n / 6) * 10; } int main() { int n; scanf("%d", &n); printf("%ld", six(n)); return 0; }