Professional Documents
Culture Documents
Nama: Ahmad Kardawi Stambuk: 1820221067 Import Public Class Public Static Void Int, ,,, New New If Else If Else If Else If Else
Nama: Ahmad Kardawi Stambuk: 1820221067 Import Public Class Public Static Void Int, ,,, New New If Else If Else If Else If Else
Stambuk : 1820221067
import java.util.Scanner;
public class ahmadkardawi3 {
public static void main (String [] args){
int st, nt, nmid, nf, na;
String nama ;
String nh = new String();
Scanner scan = new Scanner(System.in);
na = nt + nmid + nf/3;
if (na>85){
nh = "A";
}
else if (na>70){
nh = "B";
}
else if (na>60){
nh = "C";
}
else if (na>50){
nh = "D";
}
else {
nh = "E";
}
}
}