import java.io.DataInputStream;
class rata2
{
public static void main (String[]args)
{
DataInputStream a = new DataInputStream (System.in);
try
{
System.out.println ("\6 Nama : Ainul Masyayikh \6");
System.out.println ("\6 N.P.M : 06.2009.1.04662 \6");
System.out.println ();
System.out.print ("nilai 1 = ");
int b = Integer.parseInt (a.readLine ());
System.out.print ("nilai 2 = ");
int c = Integer.parseInt (a.readLine ());
System.out.print ("nilai 3 = ");
int d = Integer.parseInt (a.readLine ());
System.out.print ("nilai 4 = ");
int e = Integer.parseInt (a.readLine ());
System.out.println ();
int f = (b + c + d + e)/4;
if ((f>=56)&&(f<=100))
{
System.out.println ("nilai Anda = " +f);
System.out.println ("Anda Lulus");
}
else
{
System.out.println ("nilai Anda = " +f);
System.out.println ("Anda Gagal");
}
}
catch (Exception z)
{
System.out.println ("Tolong Inputkan dengan benar");
}
}
}
class rata2
{
public static void main (String[]args)
{
DataInputStream a = new DataInputStream (System.in);
try
{
System.out.println ("\6 Nama : Ainul Masyayikh \6");
System.out.println ("\6 N.P.M : 06.2009.1.04662 \6");
System.out.println ();
System.out.print ("nilai 1 = ");
int b = Integer.parseInt (a.readLine ());
System.out.print ("nilai 2 = ");
int c = Integer.parseInt (a.readLine ());
System.out.print ("nilai 3 = ");
int d = Integer.parseInt (a.readLine ());
System.out.print ("nilai 4 = ");
int e = Integer.parseInt (a.readLine ());
System.out.println ();
int f = (b + c + d + e)/4;
if ((f>=56)&&(f<=100))
{
System.out.println ("nilai Anda = " +f);
System.out.println ("Anda Lulus");
}
else
{
System.out.println ("nilai Anda = " +f);
System.out.println ("Anda Gagal");
}
}
catch (Exception z)
{
System.out.println ("Tolong Inputkan dengan benar");
}
}
}
Tidak ada komentar:
Posting Komentar