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

I'm holding on your rope Got me ten feet off the ground And I'm hearing what you say But I just can't make a sound You tell me that you need me Then you go and
If the school has 90 students, there are how many sixth graders?
Are predator or their prey more likely to be successful
What is the exact volume of the cylinder? 54π in³ 108π in³ 162π in³ 324π in³
can you finish these lyrics do it for your country, do it for your name, cause there gonna be a day when your...​
Harrison ate 3/12 of a sushi roll. miles ate 5/12 of the same sushi roll.How much more of the sushi roll did miles eat then harrison
In the number 5.3779, how does the value of the 7 in the hundredths place compare to the value of the 7 in the thousandths place? The value of the 7 in the hund
Hurry please!!!!!!!!!!!!!!!
Supervisor: "If you increase your current quality score of 85% by 7%, you will have a score of
Witch one should i pick yes or no? please help me.