> 其他 >
C语言:任意输入一个三位整数,然后逆序输出.如123变为321.
人气:207 ℃ 时间:2019-09-22 09:29:31
解答
main(){
int x;
scanf("%d",&x);
x=(x%10)*100 + (x/10%10)*10 + (x/100)
printf("%d\n",x);
}
推荐
猜你喜欢
© 2024 79432.Com All Rights Reserved.
电脑版|手机版