import java.io.*; class citeste { public static int intreg(String text) { byte b; byte []a= new byte[81]; int i=0,z; System.out.print(text); try { while((b=(byte)System.in.read())!='\n') { a[i++]=b; } }catch(IOException e) {e.printStackTrace();} z=Integer.parseInt(new String(a,0,(i-1))); return z; } } class ecgr1 { public static void main(String args[]) { double a, b, x; a=citeste.intreg("\nIntroduceti coeficientul a="); b=citeste.intreg("\nIntroduceti coeficientul b="); try{ System.out.println(" x=" + -b/a); }catch(ArithmeticException e){System.out.println("Coeficient nul!!!");} } }