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

PLS HELP URGENT!!!Calculate the area of a floor that is 1.5 × 103 m long and 2.2 × 102 m wide.
Any help is appreciated. Not sure how to get to the answer. No links pls
Answer pls…………………………..
The main purpose for creating the United Nations was to _____. 1. create a homeland for the Jews 2. help prevent future world wars 3. run the German government
Drag each tile to the correct box. Match each excerpt to the mood it evokes or the image it creates.
Summary of set.........
A long, horizontal table. Jesus is in the center of the table. On either side of him are six men, either facing him or with bodies angled toward him. Name the p
This artist is famous for his structural use of color and brushwork that appeals to the intellect, and a solidity of composition enhanced by a fluid application
The diagram shows APQR. Which term describes point S?
can i ask if the orange is orange, it is named orange or it called orange ? ​