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 5 7/8 as an improper fraction
What forces have contributed to the growth of the global economy?
In a redox reaction, how does the total number of electrons lost by the oxidized substance compare to the total number of electrons gained by thereduced substan
Using 6400 km as the radius of Earth, calculate how high above Earth’s surface you would have to be in order to weigh 1/16th of your current weight. Show all w
Given the equation:X + Cl2 --> C2H5Cl + HCl Which molecule is represented by X? (1) C2H4 (3) C3H6 (2) C2H6 (4) C3H8
What opinion might a British soldier have had about the Boston Massacre?
brandon wants to join a video game club. The membership costs $47, and every game that he rents will cost $2.if brandon rents 17 games how much money will he sp
Why do we only see only one side of the moon from Earth A. the moon does not rotate B. the moon takes longer to rotate then to revolve around Earth C. the moon
Write the ratio in three different formats: to , , and . Carlos biked 24 miles and ran 6 miles. Write the ratio of the distance Carlos biked to the to
Which of these formulas contains the most polar bond? (1) H–Br (3) H–F(2) H–Cl (4) H–I