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

Living things____ to fuel all cell functions.
Choose a theory that best explain what mitivates you to attend school and do school​
Divide the equation and provide a step through process
hey can someone help me ?Which graph shows a function whose inverse is also a function?
What does the presence of earthquakes tell you about plate tectonics in that area​
(x+7)(x-3)(2x+5) someone simplify this
1. What is being decided when information is evaluated? 2. List and describe the two steps you can use to break down into its arguments 3. Why does confusing a
Figure JKLM is a rectangle, so mAngleKJM = mAngleKLM = 90° and AngleKJC Is-congruent-toAngleMLC. A rectangle has corner points J, K, L, M going clockwise. 2 lin
What propaganda does “I WANT YOU FOR U.S. ARMY” use ? -Name calling -Generalities -Euphemisms -Appeal to authority -Plain folks -Bandwagon -Fear -Hyperbol
Solve for x. -98=4x-50