Twentythree Zone

// Contoh stat If dengan 2 Kondisi

import java.io.*;
public class Lulus
   {
     public static void main (String args[])
  {
  try
  {
  BufferedReader nilai=new BufferedReader (new InputStreamReader (System.in));
  System.out.print("Nilai Anda = ");
  String input1=nilai.readLine();
  int nilaiakhir=Integer.parseInt(input1);
  String ket=(nilaiakhir >=55?"Lulus":"Gagal");
  System.out.println("Keterangan = Anda "+ket);
    }
catch (IOException e)
{
e.printStackTrace ();
}}}

Categories:

Leave a Reply