想知道如何让输入123输出后是1-2-3,我不管怎么试都不可以
int main() { char c[3]; for(int i=0;i<3;i++) scanf("%c",&c[i]); printf("%c-%c-%c",c[0],c[1],c[2]); return 0; }