write a program that reads integers user num and div num as input, and output the quotient (user num divided by div num). use a try block to perform all the statements. use an except block to catch any zerodivisionerror and output an exception message.

Respuesta :

Using the knowledge in computational language in python it is possible to write a code that write a program that reads integers user num and div num as input, and output the quotient

Writting the code:

   # reading input from user

   user_num = int(input())

   # reading second input from user

   div_num = int(input())

   # calculating result of division operation

   print(user_num//div_num)

except ValueError as e1:

   print("Input Exception:", e1.args[0])

except ZeroDivisionError as e2:

   print("Zero Division Exception:", e2.args[0])

See more about python at brainly.com/question/12975450

#SPJ1

Ver imagen lhmarianateixeira