View Code of Problem 86

#include<stdio.h>
#include<math.h>
int main(){
	int a,b,i,k,c,d=0,s=0;
	scanf("%d %d",&a,&k);
	for(i=0;i<k;i++){
		s=a+10*s;
		d+=s;
		
	}
	printf("%d\n",d);
	return 0;
}

Double click to view unformatted code.


Back to problem 86