Zero

Report a typo

Prevent ZeroDivisionError in the code below. When denominator is 0, print the message "Division by zero is not supported". In other cases, print n divided by denominator.

Sample Input 1:

100
1

Sample Output 1:

100

Sample Input 2:

3
0

Sample Output 2:

Division by zero is not supported
Write a program in Python 3
n = int(input())
denominator = int(input())

print(n // denominator)
___

Create a free account to access the full topic