elesis's haunt
2588 곱셈 본문
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();
sc.close();
int b001 = b%10;
int b010 = (b%100)/10;
int b100 = b/100;
System.out.println(a*b001);
System.out.println(a*b010);
System.out.println(a*b100);
System.out.println(a*b);
}
}
'백준~문풀 후 최적화 추가~ > 단계별로 풀어보기' 카테고리의 다른 글
9498 시험 성적9498 시험 성적 (0) | 2021.04.14 |
---|---|
1330 두 수 비교하기 (0) | 2021.04.14 |
10430 나머지 (0) | 2021.04.14 |
10869 사칙연산 (0) | 2021.04.14 |
1000 A+B, 1001 A-B 10998 A*B 1008 A/B (0) | 2021.04.10 |
Comments