2588

    [Java] 백준 2588: 곱셈

    [Java] 백준 2588: 곱셈

    import java.util.Scanner; public class Main{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); int A, B, C, D, E, F; A = sc.nextInt(); B = sc.nextInt(); C = (A*(B%10)); D = (A*(((B%100)-(B%10))/10)); E = (A*(((B%1000)-(B%100))/100)); F = ((E*100)+(D*10)+C); System.out.println(C); System.out.println(D); System.out.println(E); System.out.println(F); } } (2)에 입력받은 숫자를 각 ..