백준
[백준/2588] 자바 곱
Remi
2023. 1. 5. 23:40
728x90
반응형
import java.io.IOException;
import java.util.Scanner;
public class Main {
public static void main(String[] args) throws IOException {
Scanner sc = new Scanner(System.in);
int A = sc.nextInt();
String B = sc.next();
sc.close();
System.out.println(A* (B.charAt(2) -'0'));
System.out.println(A* (B.charAt(1) -'0'));
System.out.println(A* (B.charAt(0) -'0'));
System.out.println(A* Integer.parseInt(B));
}
}
728x90
반응형