문제 출처 : https://www.acmicpc.net/
#1008: A/B (언어 : Java11)

제출 답안
import java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int A=sc.nextInt();
int B=sc.nextInt();
System.out.print((double)A/B);
}
}
comment
달콤한 int에 속지 말자^^...
'Study📚 > 백준' 카테고리의 다른 글
[백준] - #11382: 꼬마 정민 (0) | 2024.05.12 |
---|---|
[백준] - #1001: A-B (0) | 2024.05.11 |
[백준] - #10869: 사칙연산 (0) | 2024.05.11 |
[백준] - #1000: A+B (0) | 2024.05.10 |
[백준] - #2557: Hello World (0) | 2024.05.10 |