Notice
Recent Posts
Recent Comments
Link
- Today
- Total
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- KotlinInAction
- GIT
- github
- suspend
- jlpt
- 코틀린
- blog
- webflux
- n3문법
- 책추천
- PR
- 진짜학습지
- errorhandling
- posting
- ai
- CustomTab
- 진짜일본어
- 안드로이드
- 진짜학습지후기
- 인공지능
- androidstudio
- Kotlin
- rxjava
- coroutine
- Android
- 일본어기초
- pullrequest
- 일본어문법
- 책리뷰
- 학습지
Archives
코딩하는 개굴이
BaekJoon/BOJ [JAVA] 시험 성적_9498 본문
반응형
BaekJoon/BOJ [JAVA] 시험 성적_9498
HINT: 단순한 if문이다
import java.util.Scanner;
public class baekjoon_9498 {
public static void main(String [] argc){
Scanner scanner = new Scanner(System.in);
int score = Integer.parseInt(scanner.next());
if(score>=90 && score<=100) System.out.println("A");
else if(score>=80 && score<=89) System.out.println("B");
else if(score>=70 && score<=79) System.out.println("C");
else if(score>=60 && score<=69) System.out.println("D");
else System.out.println("F");
}
}
반응형
'알고리즘 > Baekjoon' 카테고리의 다른 글
BaekJoon/BOJ [JAVA] X보다 작은 수_10871 (0) | 2018.11.25 |
---|---|
BaekJoon/BOJ [JAVA] 세 수_10817 (0) | 2018.11.25 |
BaekJoon/BOJ [JAVA] 숫자카드_10815 (0) | 2018.11.16 |
BaekJoon/BOJ [JAVA] 숫자카드2_10816 (0) | 2018.11.16 |
BaekJoon/BOJ [JAVA] 빠른 A+B_15552 (0) | 2018.11.16 |
Comments