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 are the different types of erosion?
The width of a rectangular window is 2 feet more than its height. If the area is 35 square feet, what is the height?
what part of speech ,inference ,and the definition of the word abominable ?
what would a geographer conducting research be most likely to do
Name the 4 realms of the earth .
Factor 3x ^2 +20x+12
Sienna has 80 yards of fencing to enclose a rectangular area. Find the dimensions that maximize the enclosed area. What is the maximum area?
Jack, Jill, and Bill each carried a 48 ounce bucket full of water down the hill.  By the time they reached the bottom, Jack's bucket was only 3/4 full, Jill's w
need to lose one electron to form a stable octet b. alkali metals c. alkaline earth metals d. noble gases e. lanthanides
Sienna has 80 yards of fencing to enclose a rectangular area. Find the dimensions that maximize the enclosed area. What is the maximum area?