encrypt input:a number,输出一个数字表示密码。例如输入 123456,输出,321654,输入1234567,输出3214765
#include <stdio.h>
#include <string.h>
int main()
{
char p[10];
scanf("%s", p);
int l = strlen(p) - 1;
char t;
t = p[0];
p[0] = p[2];
p[2] = t;
t = p[l - 2];
p[l - 2] = p[l];
p[l] = t;
printf("%s\n", p);
return 0;
}