十进制转N进制
摘要:
输入一个十进制数,将其转换成N进制数(1<= N <= 16)#include <stdio.h>/* This function is used to convert the number * "num" is the number you want to convert * "n" is the N */void convert(int num, int n){ int out_num; if ((out_num = num / n) != 0) convert(out_num, n); printf("%d&quo 阅读全文
posted @ 2012-09-09 19:52 初级业余程序员 阅读(487) 评论(0) 推荐(0)
浙公网安备 33010602011771号