十进制转十六进制 注释:%d表示十进制,%x表示十六进制 #include<stdio.h> main(){ int i; printf("请输入十进制数:\n"); scanf("%d",&i); printf("转换输出的十六进制数是:%x",i); }