import java.io.*;
import java.util.Scanner;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;
public class java {
public static void main (String[] args) throws Exception {
DataInputStream masukkan = new DataInputStream(System.in);
System.out.println("===PROGRAM MENARIK KESIMPULAN MODUS TOLENS===");
String A="";
System.out.println("Masukan Subjek/Nama Orang ");
try
{
A = masukkan.readLine();
}catch( IOException e ){
System.out.println("Error!");
}
String B="";
System.out.println("... (Premis 1)");
try
{
B = masukkan.readLine();
}catch( IOException e ){
System.out.println("Error!");
}
String C="";
System.out.println("... (Premis 2)");
try
{
C = masukkan.readLine();
}catch( IOException e ){
System.out.println("Error!");
}
String D="";
System.out.println("... (Premis 3)");
try
{
D = masukkan.readLine();
}catch( IOException e ){
System.out.println("Error!");
}
System.out.println("Premis 1 = "+A+" "+B+", Premis 2 = "+A+" "+C+", Premis 3 = "+A+" "+D );
System.out.println("Kesimpulannya ="+C+" tidak "+B);
}
}
Wednesday, November 27, 2013
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment