题目: #include <stdio.h> int main() { int a,n,s=0,i=1,b; scanf("%d%d",&a,&n); b=a; while(i<=n) { s+=a; a=a*10+b; i++; } printf("%d",s); return 0; }