#include <stdio.h>
#include <math.h>
main()
{
long s,t=1,f=1;
int i=1,x,y;
printf("input :");
scanf("%ld",&s);
x = s%10;
y = s/100%10*10;
for(; f !=0 ;i = pow(100,i) )
{
t = t+x+y;
f = s/1000;
x = s%10*i;
y = s/100%10*10*i;
i = i++;
}
printf("t=%ld\n",t);
}
要求是输入7654321,输出是7531。
我这个程序有什么问题,可以如何修改。