import util.KeyboardReader;

public class MultiCatchTest {
  public static void main(String[] args) {
    int num1, num2;
    try {
      num1 = KeyboardReader.getPromptedInt("Enter a number: ");
      num2 = KeyboardReader.getPromptedInt("Enter another number: ");
      System.out.println(num1 + " / " + num2 + " = " + num1/num2);      
    }
    catch (NumberFormatException e) {
      System.out.println("Number Format Exception occurred");
    }
    catch (ArithmeticException e) {
      System.out.println("Divide by Exception occurred");
    }
    catch (Exception e) {
      System.out.println("General Exception occurred");
    }
  } 
}