duganjr1 duganjr1
  • 25-05-2020
  • Computers and Technology
contestada

I need the code for Assignment 5 Animation in Edhesive, its in python code.

Respuesta :

Rehemam Rehemam
  • 10-09-2020

Answer:116596

Explanation:

Answer Link
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:

Answer Link

Otras preguntas

What was sojourner truth contribution
solve the equation. x/2 + 2x/3 =5
What is the business cycle?
How much money is spent on the Puerto Rican military?
[1] In Common Sense, Thomas Paine attempts to appeal to the colonists. [2] He argues that America must separate from Britain. [3] He asserts that there is no wa
To the nearest hundredth, what is the distance between point (-6, -1) and point (4, 3)?
If the diameter of a circle is 9 cm, then its circumference is 56.52 cm.
Find the common ratio for the following sequence. 27, 9, 3, 1, .
What are the benefits of including some types of fish and shellfish in one’s pregnancy diet, and why must other types of fish and shellfish be avoided during pr
what is an equivalent expression for x^-3 that uses positive exponents