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 ability to bounce back from setbacks or disappointments?
how to identify the bases and faces of each figure then name the figure
The body has very efficient internal defenses which can remove any quantity of an unwanted substance. a. True b. False
Which sentence contains an infinitive phrase? A.He visited Congress to gather support for his proposal. B.He visited Congress, gathering support for his proposa
Ventifacts are created by a process of erosion called
Convert 43/8 to a mixed number
A rubber ball contains 5.70*10⁻¹ dm³ of gas at a pressure of 1.05 atm. What volume will the gas occupy at 7.47 atm?
Give an example of a 90 degree angle
The seventh term of the sequence -2, -6, -10, -14, ... is _____. -26 -24 -22 -20
number between 55 and 101 that is a multiple of 4 8 and 16