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 are three causes of the Great Schism in Christianity?
What colonies make up the Southern colonies?
What does endocrinology mean?
What do all multicellular organisms begin as?
Which statements describing the English Civil War are true? Choose all answers that are correct. A. When the Royalists were defeated, England became a Commonwe
The region with the greatest number of colonial and commercial competitors was a. the western coast of Africa. b. Indonesia. c. the Caribbean islands. d. th
One of the purposes of the US judicial system is to
How can Ohm's law be used to calculate the electrical resistance of a piece of wire?
Analyze continuities and changes in labor systems in ONE of the following regions within the time period 1450 to 1900. Latin American/Caribbean or North Americ
A gazelle is born with slightly longer legs which allow it to run faster than the other gazelles in the herd. This adaptation came may have come about because a