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

Need help with history
What artery is responsible for the transportation of oxygen-poor blood from the heart to the lungs?carotid arteryright arterypulmonary arteryaorta​
How did president frankin d roosevelt increase the power of the presidency
The vikings attempting to settle in north america were defeated by which group?
What are the solutions to the quadratic equation 4x^2 + 28x = 0? A.) x = 4 and x = -7 B.) x=4 and x=7 C.) x=0 and x=-7 D.) x=0 and x=7
write the first 3 terms of the sequence an=n+2​
Which of the following best describes what an indentured serving did?
Use basic trigonometric identities to simplify the expression: sin (-x) cos (-x) csc (-x) =?
The Mau Mau Rebellion occurred in: Gabon Kenya Libya
2. Trey measured the mass of some pebbles What is the combined mass of the pebbles that are 4 1/2 grams or more?