#include <stdio.h>
#include <math.h>
int main()
{
int a,i,n,sum;
printf("请输入a, n:");
scanf_s("%d %d",&a,&n);
sum = a;
printf("%d\n", a);
for (i = 1; i <n; i++)
{
a = a * pow(10,1) + a%10;
printf("%d\n", a);
sum=sum+a;
printf("%d\n", sum);
}
printf("%d\n", sum);
return 0;
}
标签:aa,10,aaa,int,sum,aaaaaa,printf,include From: https://blog.51cto.com/u_16336886/8561714