import java.io.*; public class lat2 { public static void main(String args[]) { double hasil,kur,bel; try { BufferedReader inputA=new BufferedReader (new InputStreamReader(System.in)); System.out.print("input A : "); String input1=inputA.readLine(); double A=Double.parseDouble(input1); BufferedReader ts=new BufferedReader (new InputStreamReader(System.in)); System.out.print("input B : "); String input2=ts.readLine(); double B=Double.parseDouble(input2); BufferedReader tl=new BufferedReader (new InputStreamReader(System.in)); System.out.print("input C : "); String input3=tl.readLine(); double C=Double.parseDouble(input3); kur=(C+B); bel=(A-B); hasil=(C+B)/(A-B); System.out.println("hasil= "+"("+C+"+"+B+")"+"/"+"("+A+"-"+B+")"); System.out.println(" = "+kur+"/"+bel); System.out.println(" = "+hasil); } catch (IOException e) { e.printStackTrace(); } } }