kearnyadvertising kearnyadvertising
  • 14-12-2021
  • Computers and Technology
contestada

Write a program that:
a) Inputs TWO numbers and finds the average of both numbers, only if BOTH numbers are less than 100

Respuesta :

6385726215
6385726215 6385726215
  • 24-12-2021

Answer:

num1 = int(input("Enter number 1: "))

num2 = int(input("Enter number 2: "))

if num1 < 100 and num2 < 100:

   newnum = num1 + num2

   finalnum = newnum // 2

elif num1 >= 100 or num2 >= 100:

   print("Invalid input.")

else:

   pass

Explanation:

Gg ez.

(I assumed the language was python. Next time, put what programming language you want it to be in.)

Answer Link

Otras preguntas

Solve For v. 12= -4v+2 (v+2) Simplify your answer as much as possible.
You measure the mass of an apple using a balance. You get these three measurements: Trial 1: 167.0 g Trial 2: 166.9 g Trial 3: 167.2 g You know that the true ma
What are the coordinates of the point (−1, 6) after a reflection across the x-axis
How many electrons does 2Na+1 have
help me please !! ❤️❤️
By the way, those aren't Z's, I'm not sure what they are.​
20. When you work hard, you perform well. (Rewrite beginning: The....the...)​
ILL GIVE BRAINLIEST AND EXTRA POINTS- Who FIRST recognized the cell as the universal unit of life? HINT ITS NOT HOOKE I GOT IT WRONG 1. Virchow 2. Van Leeuwenho
*PLEASE HELP WITH MY MATH QUESTIONS I JUSS POSTED ITS URGENT!!* thanks xoxo
Before beginning his shift as a line cook at a fast food restaurant , Andre makes sure that the grill is sanitized , that his tools are sanitized and readily av