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

all fractions between 0 and 1/4
. What are three factors that could contribute to a source not being credible?
distribute (x+1)(x-2)
distribute (x+1)(x-2)
what city is located 60 north 25 east
A construction contractor is purchasing granite tiles for a new kitchen floor. Each tile costs $5 and he wants to spend less than $1,500. The size of each tile
At the school carnival, Carmen sold 3 times as many hot dogs as Shawn. The two of them sold 152 hot dogs altogether. How many hot dogs did Carmen sell? 51382111
Any number that is divisible by 3 is also divisible by 9.Find a counterexample to show that the conjecture is false.18274548
Given the inequalities y > 5x-8 and y >3x+4, find the point that satisfies one inequalities but not them all
What is a Mandala Autobiography?