问题描述:输入1个9进制数字串,将其转化为19进制并输出。依次使用小写字母a…i表示数字10…18。假设将该数字转化为10进制时,存储于int型变量不溢出。
例如:输入40,则输出结果为1h。
思路:先转10进制,再转19进制
代码:
#include <stdio.h>
#include <math.h>
#include <string.h>
<
问题描述:输入1个9进制数字串,将其转化为19进制并输出。依次使用小写字母a…i表示数字10…18。假设将该数字转化为10进制时,存储于int型变量不溢出。
例如:输入40,则输出结果为1h。
思路:先转10进制,再转19进制
代码:
#include <stdio.h>
#include <math.h>
#include <string.h>
<