View Code of Problem 86

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

int main()//判断是否为闰年
{
int a;
int b;
int d;
int really=0;
int sum=0;
while(scanf("%d%d",&a,&b)!=EOF){
    for(int i=1;i<=b;i++){

        sum=sum*10+a;
        d=sum;
        really=d+really;
    }
     printf("%d",really);

}


return 0;

}

Double click to view unformatted code.


Back to problem 86