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 definition of popular press source?
Solve proportions 13/25 = p/100
Is there DNA in our food? How do you know?
what is 15.70796327 rounded to 1 decimal point?
A cross-country automobile rally is 1,025 kilometers long. At a stopping place the letter had traveled 867 kilometers. How far away was finish line
Is there DNA in our food? How do you know?
Tim solved a system of linear equations. He found that an infinite number of points satisfied the system. What do you know for certain is true about the two lin
16.   The main reason self-confidence is important in human relations is because
Solve the equation for y.4x – 5y = 9
There were 149 angelfish and goldfish in an aquarium.  There were twice as many guppies as angelfish.  After selling 35 goldfish there are half as many goldfish