标签:span include 分离 bsp color turn 输入 clu scan
输入一个三位数,分离他的百位,十位,个位,反转后输出
样例输入:
127
样例输出:
721
1.
1 #include<stdio.h> 2 int main() 3 { 4 int n; 5 scanf("%d",&n); 6 printf("%d%d%d\n",n%10,n/10%10,n/100); 7 return 0; 8 }
2.
1 #include<stdio.h> 2 int main() 3 { 4 int n; 5 scanf("%d",&n); 6 n=n/100+n/10%10*10+n%10*100; 7 printf("%03d\n",n); 8 return 0; 9 }
标签:span include 分离 bsp color turn 输入 clu scan
原文地址:https://www.cnblogs.com/xybz/p/9977751.html