Answer:
n = float(input("Enter the Numerator: "))
d = float (input("Enter the Denominator: "))
if (d != 0):
print ("Decimal: " + str(n/d))
else:
print("Error - cannot divide by zero.")