public class Test {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
System.out.println("请输入两个数中间用空格隔开:");
int a = scan.nextInt();
int b = scan.nextInt();
Test t = new Test();
int sum = 0;
t.fn(a,b);
while(b>0){
sum = sum + t.fn(a,b);
b--;
}
System.out.println(sum);
}
public int fn(int a,int b){
int sum = 0;
while(b>0){
sum = sum + a;
a = a* 10;
b--;
}
return sum;
}
}