문제

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import java.util.*;
 
public class Main {
 
    public static void main(String[] args) {
 
        Scanner rd = new Scanner(System.in);
 
        int A = rd.nextInt();
 
        int B = rd.nextInt();
 
        
        System.out.println(A*(B%10)); // B의 1의 자리수
 
        System.out.println(A*(B/10%10)); // B의 10의 자리수
 
        System.out.println(A*(B/100%10)); // B의 100의 자리수
 
        System.out.println(A*B);
 
    }
}
http://colorscripter.com/info#e" target="_blank" style="color:#4f4f4ftext-decoration:none">Colored by Color Scripter
 

 

실행 창

+ Recent posts