Coba Java


import java.util.Scanner;
pubic class Nilai
{
public static void main(String [] args)
{
Scanner input = new Scanner(System.in);
System.out.println(“Masukkan Nilai Mahasiswa = “);
int NilaiMahasiswa = input.nextInt();
if (NilaiMahasiswa >= 85)
{ System.out.println (“A”) }
else if (NilaiMahasiswa >= 75)
{ System.out.println (“B”) }
else if (NilaiMahasiswa >= 65)
{ System.out.println (“C”) }
else if (NilaiMahasiswa >= 60)
{ System.out.println (“D”) }
else
{ System.out.println (“Anda Tidak Lulus/E”) }
}
}

import java.util.Scanner;pubic class Nilai{public static void main(String [] args){Scanner input = new Scanner(System.in);System.out.println(“Masukkan Nilai Mahasiswa = “);int NilaiMahasiswa = input.nextInt();if (NilaiMahasiswa >= 85) { System.out.println (“A”) }else if (NilaiMahasiswa >= 75) { System.out.println (“B”) }else if (NilaiMahasiswa >= 65) { System.out.println (“C”) }else if (NilaiMahasiswa >= 60) { System.out.println (“D”) }else  { System.out.println (“Anda Tidak Lulus/E”) } } }

Tentang hasanmualim

Wong Ndeso
Pos ini dipublikasikan di Pascal. Tandai permalink.

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s