#include <stdio.h>
int main()
{
int num = 0;
int count = 0;
int sum = 0;
scanf("%d%d", &num, &count);
int i = 0;
int tmp = num;
for (i = 0; i < count; i++)
{
sum += num;
num = num * 10 + tmp;
}
printf("%d\n", sum);
system("pause");
return 0;
}
时间: 2024-10-19 18:52:24