forked from bliblidotcom/training-java-future-program
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathScore.java
More file actions
Latest commit
31 lines (27 loc) · 538 Bytes
/
Copy pathScore.java
File metadata and controls
31 lines (27 loc) · 538 Bytes
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
31
publicclassScore {
publicstaticvoidmain(String[] args){
System.out.println("Hello World !");
//KALENDAR
if(args.length!=1){
System.out.println("Input angka!");
}
intscore= Integer.parseInt(args[0]);
if(score>80){
System.out.println("Nilai A");
}elseif(score>60){
System.out.println("Nilai B");
}elseif(score>40 ){
System.out.println("Nilai C");
}elseif(score>20){
System.out.println("Nilai D");
}else{
System.out.println("Nilai E");
}
}
}
//
//1-20 e
//21-40 d
//41-60 c
//61-80 b
//81-100 a