Nathan Coulas

CCC '17 J2 - Shifty Sum

ccc17j2 JAVA8 06 Nov, 2019 2.096s 3 points

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);
 
    }
  
    
}