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

Explain what the commonly held view of sickness and health is in the yellow wallpaper
how is the image of an object seen through a high power objective different from the image seen through a low power objective
a_ is an organized collection of data in digital format that helps user's to keep track of information?
what type of molecule is formed when combining glucose molecules with nitrate ions
Question 18.what causes clouds to reflect a portion of sunlight back to space
Arjun reduced the size of a rectangle to a height of 4 in. What is the new width if it was originally 8 in tall and 6 in wide?
The computer makes the correct decision 100 percent of the time. True False
"The equation y=1.09x describes the approximate number of yards y in x meters." (a)Would Negative values of x have any meaning in this situation? explain. (b) h
How do you round 10703.36 to hundreds?
What is the definition of indespicable?