#include <stdio.h>
int main (){
int scanfNum;
scanf("%d", &scanfNum);
int transformationTwoNum = (scanfNum / 16);
int transformationOneNum = (scanfNum % 16);
int transformationNum = (transformationTwoNum * 10) + transformationOneNum;
printf("0x%d", transformationNum);
return 0;
}
2-4. BCD解密
于 2023-08-02 15:27:52 首次发布