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

Other word for Hierarchies
Describe what the world might be like if scarcity did not exist
Describe at least 4 characteristics of the region that make it a unique location in Canada
who is hernando de soto? why was he important
Chef A insists that roux is the traditional thickener for bisque. Chef B insists that it's rice. Which chef is correct? A. Both are correct B. Chef A is corre
jill says that 12.6 is less than 12.63. explain her error
What is the density of carbon dioxide gas if 0.196g occupies a volume of 100mL?
What is the solution to the system of equations?
According to Castiglione what physical attributes befitted a courtier
Find the measure of an angle such that the difference between its supplement and 3 times its complement is 46°.