View Code of Problem 86

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

Double click to view unformatted code.


Back to problem 86