怎样用c语言来编程这道题目?

2025-03-13 13:47:35
推荐回答(1个)
回答1:

#include

int main()
{
char c;

c=getchar();
printf("DEC:%d\nOCT:%o\nHEX:%x\n",c,c,c);
return 0;
}