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

what is the strongest muscle in the body
which of the visual elements can best be described as “the path of a moving point”?
twice the sum of 15 and a number
what is soft money and why is it controversial
Each of the following except was created to help congress with investigations. a. the Tenure of Office Act b. the Congressional Budget Office c. the Governme
state the commutative property of multipication, and provide an example using two different numbers
definition of imperialism
What is the potential of a 35kg child sitting at the top of a slide that is 3.5m above the ground? What is her kinetic energy if she moves down the slide at a s
which of the following is not considered an essential consideration in building a group into an effective team?
difference between their and there