목차
1. 문제

2. 맞춘코드
//[백준 Java] 1008: A/B
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;
import java.util.StringTokenizer;
public class bj1008{
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
StringTokenizer st = new StringTokenizer(br.readLine()," ");
int num1 = Integer.parseInt(st.nextToken());
int num2 = Integer.parseInt(st.nextToken());
double numtotal = (double)num1 / num2;
System.out.println(numtotal);
}
}
'💻 문제풀고 정리하기 + > 백준' 카테고리의 다른 글
| [백준 Java] 10926: ??! (0) | 2023.08.26 |
|---|---|
| [백준 Java] 10869: 사칙연산 (0) | 2023.08.26 |
| [백준 Java] 10998: A×B (0) | 2023.08.26 |
| [백준 Java] 1001: A - B (1) | 2023.08.26 |
| [백준 Java] 1000: A + B (0) | 2023.08.26 |