View Code of Problem 86

#include<stdio.h>
int main(){
	int i,s=0,a,k,n=0,h,l,min,max;
	int c[100][100];
	scanf("%d%d",&a,&k);
	for(i=0;i<k;i++){
		s=s*10+a;
		n+=s;
		
	}
	printf("%d",n);
	return 0;
}

Double click to view unformatted code.


Back to problem 86