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

15. $10.20 – m = $3.46
help please !!!!!!!!
theses sentences and different i want you to rewrite them as a summery PLEASE HELP ME I RELLY NEED IT T_T It's 1787 and there are many people coming up to this
A boat heads south at 120 mph while a steamer heads east at 50 mph. If they started from the same dock and at the same time, when will the distance between them
Which mineral leaves a green-black powder when rubbed against an unglazed porcelain plate
Explain geometric similanty and dynamic similarity
what is the leading term of the following polynomial? f(x)=5x4-3x3+9x2+6x-7 A.5x4. B.-3x4. C.9x2. D.6x​
where did most of the manufacturing occur in the colonists in the 18th century
Which statement best describes American policy towards native Americans in the late 19th century Why C is correct answer
At a party,the number of people who ate meatballs was 11 fewer than 1/3 of the total number of people. Five people ate meatballs. Write a one step equation that