标签:pre scan scanf col 倒序输出 std 输出 int include
#include<stdio.h>
void main()
{
int a,b,c,x;
printf("请输入一个三位数:");
scanf("%d",&x);
a=x/100;
b=x/10%10;
c=x%10;
x=c*100+b*10+a;
printf("这三位数的倒序输出为%d",x);
}
/* result------------------------------------------------------------------------------------
请输入一个三位数:123
这三位数的倒序输出为321Press any key to continue
-------------------------------------------------------------------------------------------*/
标签:pre scan scanf col 倒序输出 std 输出 int include
原文地址:http://www.cnblogs.com/liuchenchen/p/7746012.html