#include <stdio.h>
#include <stdlib.h>
void main ()
{int a,n,i;
scanf("%d %d",&a,&n);
int sub=0;
int num=0;
for(i=0;i<n;i++){
sub+=num;
num=num*10+a;
}
num-=sub;
printf("\nthe result is:%d\n",num);
system("pause");
}
#include <stdlib.h>
void main ()
{int a,n,i;
scanf("%d %d",&a,&n);
int sub=0;
int num=0;
for(i=0;i<n;i++){
sub+=num;
num=num*10+a;
}
num-=sub;
printf("\nthe result is:%d\n",num);
system("pause");
}