输入一个三位数,如何编写输出这个三位数的逆序
# include <stdio.h># include <stdlib.h>
int main (void)
{
int i1,i2,i3;
printf("Enter a three-digit number:");
scanf("%1d%1d%1d",&i1,&i2,&i3);
peintf("The rewersal is:");
scanf("%1d%1d%1d",&i3,&i2,&i1);
system("pause");
return 0;
}
请帮忙看下哪里出错??