Created
October 4, 2017 12:52
-
-
Save sugiartocokrowibowo/1b4b3cd3cf348ac23f2deea8b2e75927 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.util.Scanner; | |
| public class E { | |
| /** | |
| * @param args | |
| */ | |
| public static void main(String[] args) { | |
| Scanner s = new Scanner(System.in); | |
| System.out.println("INPUT"); | |
| System.out.print("Masukkan Nilai : "); | |
| double x = s.nextDouble(); | |
| System.out.println("\nOUTPUT"); | |
| if(x>85){ | |
| System.out.println("Nilai Huruf : A"); | |
| }else if(x>70){ | |
| System.out.println("Nilai Huruf : B"); | |
| }else if(x>65){ | |
| System.out.println("Nilai Huruf : C"); | |
| }else if(x>50){ | |
| System.out.println("Nilai Huruf : D"); | |
| }else{ | |
| System.out.println("Nilai Huruf : E"); | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment