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

Someone knocked at the door in the middle of our lunch. - While we
5^-8 x 5^4 pls help
What is an example of a material in the plasma state of matter found on earth?
Find the area of the figure below, formed from a triangle and a parallelogram. 10 mm 6 mm 10 mm 8 mm - 6 mm 8 mm O 144 square millimeters O 120 square millimete
What are the methods for amending the constitution in the US
In an authoritarian government, who holds power?
someone please help me! i just need someone to tell me how to set it up so i can solve! thanks!!
] An unknown liquid sample is tested for chemical composition. You receive the following results: iodine test=yellow, bluret test = blue; Benedict's test = blue
A spelunker explores a new underground cave. He descends into the cave at a rate of 4 feet per minute. What is the change in position of the spelunker after 50
[tex]||3x-4|-5|\ \textgreater \ 1[/tex] help please!