/**
* @(#)Ehand.java
*
*
* @author
* @version 1.00 2008/10/6
*/
import java.io.*;
public class Ehand {
public static void main (String[] args) {
int a,b,c;
try {
DataInputStream x=new DataInputStream(System.in);
System.out.println("ENTER A: ");
a=Integer.parseInt(x.readLine());
System.out.println("ENTER B: ");
b=Integer.parseInt(x.readLine());
c=a/b;
System.out.println("A / B = "+c);
}
catch (ArithmeticException e){
System.out.println("ERROR DIVISION BY ZERO NOT POSSIBLE:");
}
catch(Exception e) {
System.out.println("EXCEPTION!!! ");
}
}
}
No comments:
Post a Comment