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

describe two forces you experience/observer everday
What is the reciprocal of -7/10 decreased by 5?
Who won the most popular votes in the election of 1824? 1. Henry Clay 2. John Q. Adams 3. Andrew Jackson 4. John C. Calhoun
i bought a pair of boots on black friday.the boots where origanaly 129.99 what percent is the discount
Write active voice or passive coice on the space provided 11.the last piece of the puzzle was added by leroy 12.mother baked me a cake yesterday 13.sir gawain
There’s a few more left
What’s the charge on the transition metal Ni3P?
Wendy throws a dart at this square-shaped target: A square is shown with sides labeled 10. A shaded circle is shown in the center of the square. The diameter of
What is the main information that this map shows
Darnel went to play miniature golf on Monday, when it cost $3 to rent the club and ball, plus $3 per game. Gary went Thursday, paying $2 per game, plus rental f