#include<stdio.h>
#include<math.h>
int an(int x,int y);
int main()
{
int a,n;
scanf("%d%d",&a,&n);
an(a,n);
return 0;
}
int an(int x,int y)
{ int i,sum=0;
for(i=2;i<=y;i++)
{
x=x/pow(10,i-2)+x*10;
sum+=x;
}
printf("%d",sum+x%10);
return 0;
}
标签:10,return,int,11.5,sum,printf,include From: https://blog.51cto.com/u_15758636/5826103