natecamp22 natecamp22
  • 19-10-2020
  • Computers and Technology
contestada

3.4 Code Practice: Question 2

Respuesta :

fnej
fnej fnej
  • 22-01-2021

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.")

Answer Link

Otras preguntas

55 men can finish a piece of work in 42 days. How many additional men must be added to complete the work 9 days earlier.​
What is the purpose of California’s law on seatbelt use check all that apply
Lily has been battling insomnia for a very long time. She recently began taking medication to help her sleep. After several weeks of taking the drug, she notice
Penny sells knitted scarves for 12$ each. The cost of supplies to make each scarf is x dollars. How much profit will Penny make if she sells y scarves?
In 1924, Paul Whiteman commissioned Gershwin to write a symphonic jazz composition called "____________ (HOPSADRY) in ______________ (LUBE)". This is a required
Triangle FHG and ABC solve for x
find the unit rate $15 for 5 hot dogs ​
The US Senate can approve a treaty with a super-majority or two-thirds vote. -True -False
Find the probability of the indicated event if ​P(E)equals0.25 and ​P(F)equals0.40. Find​ P(E or​ F) if​ P(E and ​F)equals0.05.
If it takes 100 N to move a box 5 meters, what is the work done on the box? A. 500 J B. 20 J C. 5 J D. 5,000 J