Listing Program Java Seleksi-IF

public class latseleksi3
{
public static void main(String[]args)
{
char nh;
double na=75;

if (na>=80){
nh='A';
} else if (na>=70)
{
nh='B';
}
else if (na>=60){
nh='C';
} else if (na>=40)
{
nh='D';
} else {
nh='E';
}
System.out.println("Nilai Akhir :"+na);
System.out.println("Nilai Huruf :"+nh);
}
}
Previous
Next Post »

1 comments:

Click here for comments
Anonim
admin
10 Januari 2014 pukul 18.49 ×

Kok di bagian public class latseleksi3 nya error????

Congrats bro Anonim you got PERTAMAX...! hehehehe...
Reply
avatar