Problem Description
输入三个整数,找出其中的中间数。(这里的中间数指的是大小,不是位置。)
Input
输入3个整数。
Output
输出中间数。
Example Input
1 2 3
Example Output
2
#include <stdio.h>
#include <stdlib.h>
int main()
{
int a,b,c,d,e;
scanf("%d",&a);
b = a% 10;
c = a/10%10;
d = a/100;
e = b*100 + c*10 +d*1;
printf("%d\n",e);
return 0;
}