View Code of Problem 86

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

Double click to view unformatted code.


Back to problem 86