import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int A = sc.nextInt();
int B = sc.nextInt();
int b100 = B / 100; // 백의 자리 숫자 3
int b10 = (B - b100*100) / 10; // 십의자리 숫자
int b1 = (B - b100*100 - b10*10) / 1; // 일의 자리 숫자
System.out.println(A*b1);
System.out.println((A*b10));
System.out.println((A*b100));
System.out.println((A*b1)+((A*b10)*10)+((A*b100)*100));
}
}
'일상' 카테고리의 다른 글
10172 : 개 (0) | 2021.07.23 |
---|---|
10171 : 고양이 (0) | 2021.07.23 |
1008 : A/B (0) | 2021.07.23 |
1001 : A-B (0) | 2021.07.23 |
1000 : A+B (0) | 2021.07.23 |