unknown152714 unknown152714
  • 03-11-2020
  • Computers and Technology
contestada

Write a program that will input two numbers and print the larger number on the screen.

Respuesta :

Cytokine
Cytokine Cytokine
  • 03-11-2020

num1 = float(input("Enter the first number: "))

num2 = float(input("Enter the second number: "))

if num1 > num2:

   print(num1)

else:

   print(num2)

I hope this helps!

Answer Link

Otras preguntas

Write a program that inputs a non negative integer,separates the integer into its digits and prints them separated by tabs each.For example, if the user types i
example of public speech
A receptacle is used to interrupt the flow of electricity in a circuit. True or False??
Read the passage. Little Adriana had lost her doll somewhere upstairs. Turning on the lights, the babysitter looked under the bed and behind the toybox but coul
why would establishing an agricultural college be a way to enhance a country's rate of development?​
Price supports (such as those placed on agricultural goods) Select one: a. are designed to benefit suppliers. b. hurt demanders because they face artificially h
Theseus asks Deadalus for a map of the Labyrinth ? True or false
Round your answer to the nearest hundredth.
In astronomy, distances are often expressed in light-years. One light-year is the distance traveled by light in one year. If the distance to a star is 3.6 light
What does the term "affrays" most likely mean as used in paragrapgh 2?