gimmickbutreal
[백준/자바] 2588번 - Java 본문
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int A = in.nextInt();
int B = in.nextInt();
in.close();
System.out.println(A * (B % 10));
System.out.println(A * (B % 100/10));
System.out.println(A * (B / 100));
System.out.println(A * B);
}
}
|
cs |
tip)
- in.close() 해주기
'Algorithm > Java' 카테고리의 다른 글
[백준/자바] 9498번 해설 - Java (0) | 2022.01.14 |
---|---|
[백준/자바] - 1330번 Java (0) | 2022.01.13 |
[백준/자바] 10430번 - Java (0) | 2022.01.11 |
[백준/자바] - 10869번 Java (0) | 2022.01.10 |
[백준/자바] - 1008번 Java (0) | 2022.01.09 |