josegonzalez20 josegonzalez20
  • 02-03-2020
  • Computers and Technology
contestada

How to do assignment 5 on edhesive please help

Respuesta :

TaterTad
TaterTad TaterTad
  • 04-11-2020

Answer:

n = int(input("How many numbers do you need to check? "))

odd = 0

even = 0

for i in range(1, n+1):

num = int(input("Enter number: "))

if (num % 2 == 0):

 print(str(num)+ " is an even number.")

 even = even + 1

else:

 print(str(num)+ " is an odd number.")

 odd = odd + 1

print("You entered " + str(even)+ " even number(s).")

print("You entered "+ str(odd)+ " odd number(s).")

Explanation:

Can I please have brainliest?

Answer Link

Otras preguntas

The nurse observes that a child fails to make eye contact and has poor impulse control. Upon further assessment, the nurse finds that the parent is an alcoholic
16. which of the following is a result of a population reaching carrying capacity?
Look to make 10 ones or 10 tens to solve 36+23+17
What is the rational number equivalent to 3.12?
The square footage of a house is 1200 square feet. What type of data is this?
Demand-pull inflation occurs when
24. Which colonial leader was a printer, inventor, diplomat, writer, and Patriot? A. Sam Adams B. John Hancock C. Patrick Henry D. Benjamin Frank
PLEASE HELP ASAP!! CORRECT ANSWER PLEASE!!
Rewrite this sentence by replacing the vague pronoun with a noun. It is a place where my friends can continually docu
Laura paddles in her canoe at a speed of 5 mph for 5 miles. She then hops on her windsurfer and sails for 12 miles at a speed of 6 mph. For how long does Laura