标签: c
int main(){ char code; int coDe; printf("Enter code : "); scanf("%c%d", &code, &coDe); printf("%c%d", code,coDe); }
预期:A02 实际:A2
A02
A2
答案 0 :(得分:0)
就做
printf("%c%02d", code, coDe);