Java – Aplikasi Grade Nilai

import java.util.Scanner;

public class grade

{

public static void main(String[] args)

{

Scanner input = new Scanner(System.in);

System.out.print(“Masukkan Nilai anda: “);

int total = input.nextInt();

System.out.printf(“\nNilai Anda adalah %d. “,total );

if(total>=90)

System.out.println(“\nGrade anda A”);

else if(total<=89 && total >=80)

System.out.println(“\nGrade anda B”);

else if(total<=79 && total >=70)

System.out.println(“\nGrade anda C”);

else if(total<=69 && total >=60)

System.out.println(“\nGrade anda D”);

else

System.out.println(“\nGrade anda E”);

}

}

cat. simpan dengan nama grade.java

copy right : Agam Taufiq, Bian Abi Nugroho, Iis Aisyah

About chandechildz

I'm the simple man Always happy everday every time every well View all posts by chandechildz

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: