View Code of Problem 86

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

Double click to view unformatted code.


Back to problem 86