CS 1401, Quiz 11

Date: Monday, November 20, 2006
Name (please type legibly, ideally in block letters): ______________________________________________________________________

1. Write a main method that asks the user for two integers, and then computes and prints the integer result of dividing the first input by the second one. Use try/catch block to produce a meaningful error message when the second input is 0 (i.e., when we cannot divide).