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

Fill in the blank For a school project, Robert records the motion of a snail and plots a position-time graph of the data. From the graph, the speed of the snail
Which expression can be used to determine the slope of the linear function graphed below
What percentage of the population of Canada lives along the U.S./Canadian border? A. 90 percent B. 75 percent C. 50 percent D. 40 percent
Solve the equation. Solve the equation. −4(2z+6)−12=4
please help it is question 13
What are all the factors of 120
The process of translating a message into understandable symbols or language is called A. encoding. B. transforming. C. mediating. D. decoding. E. enriching.
HELP QUICK PLS!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! The length of a rectangle is 6 times longer than the width. The perimeter is 42 meters. What is the width? How wou
Which Muslim empire was responsible for capturing Constantinople and the Byzantine Empire in 1453?
A university completed a study to determine what effect drinking coffee had on hours of sleep. After studying 1000 people, they concluded that, for every three