https://www.acmicpc.net/problem/2588
풀이
import java.util.Scanner;
public class bj2588 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
sc.close();
System.out.println(a*(b%10));
System.out.println(a*(b/10%10));
System.out.println(a*(b/100%10));
System.out.println(a*b);
}
}
'Algorithm > BOJ' 카테고리의 다른 글
[BOJ] 백준 9498(시험 성적) -Java (0) | 2022.06.23 |
---|---|
[BOJ] 백준 1330(두 수 비교하기) -Java (0) | 2022.06.23 |
[BOJ] 백준 10430(나머지) -Java (0) | 2022.06.23 |
[BOJ] 백준 10926(??!) -Java (0) | 2022.06.23 |
[BOJ] 백준 10869(사칙연산) -Java (0) | 2022.06.23 |