View Code of Problem 86

#include <stdio.h>
#include <stdlib.h>

/* run this program using the console pauser or add your own getch, system("pause") or input loop */

int main() {
	
	int i,j,m,n;
	int x=0,sum=0;
	scanf("%d%d",&m,&n);
	for(i=0;i<n;i++){
		x=x*10+m;
		sum=sum+x;
	}
	
	printf("%d",sum);

	}

Double click to view unformatted code.


Back to problem 86