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

work out the parallelogram of base 6cm and height 8cm
What is the most dense thing in the world
what is 15.70796327 rounded to 1 decimal point?
a ball is tossed vertically upward rises, reaches it's highest point, and then falls back to its starting point. during the time, the acceleration of the ball a
What is the function of the bumpy pads on a Tasmanian devil paws
tanisha ran 3/5 of a 26 mile race in 3.2 hours.if she ran at a constant rate,what was her speed in miles per hour?
Suppose that a rectangle has a perimeter of 24 meters. Express the area A(x) of the rectangle in terms of the length x of one of its sides. A(x) = ??
What is 3/50 as a decimal And show work
how do you solve: 4 + |k + 1| <15
The following are four largest country's in the world Russia Canada China united states what country located in south america also ranks as one of the ten large