CCC '17 J2 - Shifty Sum
Source Code
import java.io.*;
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int n = in.nextInt();
int k = in.nextInt();
int culm = 0;
for(int i = 0; i < k + 1; i++){
culm += n * Math.pow(10, i);
}
System.out.println(culm);
}
}