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

Additive area What is the total area A.70 square feet B.27 square feet C.30 square feet D.35 square feet I will mark you as brainliest if you get it correct
Given that f(x) = x2 – 3x – 28 and g(x) = x - 7, find (f - g)(x) and express the result in standard form.
Look at the blank with the number 20 in the passage. Which of these answers correctly completes the sentence? By 879, the Danes ____20 forced out of Wessex and
Thank you to the person that is helping me. I don’t understand this one at all..
What is the base word in notable? able note table notice
Geometry geometry help
Based on Darwin's ideas of descent with modification and natural selection, which observation would best support the idea that increased competition causes chan
Which decimal does NOT represent the amount shaded in the grid? M
Which values are solutions to the inequality below? Check all that apply. x²<=64 O A. 9 O B. 5 O C. -3 O D. -8 O E. -14 O F. 8
Who is Newton and what did he do?