DodiBoiJesus3569 DodiBoiJesus3569
  • 03-07-2021
  • Computers and Technology
contestada

Write a simple nested loop example that sums the even and odd numbers between 5 and 15 and prints out the computation.

Respuesta :

temdan2001
temdan2001 temdan2001
  • 03-07-2021

Answer:

for e in range(6, 15, 2):

for o in range(5, 15, 2):

calc = e+o

print(e, "+", o, "=", calc)

Explanation:

Answer Link

Otras preguntas

All light rays parallel to the optical axis of a concave mirror are: refracted. reflected through the focal point. diffused. incandescent.
Alice weighs 20 dogs and 20 cats. The mean weight for the dogs is 32kg and the mean weight for cats is 4kg. The range in weight for dogs is 45kg and the range i
a conveyor belt at a recycling plant launches bottles and bottle caps into the air, so that an automatic image recognition device can count them. They land same
(a) If cos² (34°) - sin² (34°) = cos(A°),then A = degree’s
Last month David and Mary saved some money in a ratio of 3:5. This month they saved an additional $154 together, and David now has three times as much money as
Find the area of a regular polygon with 8 sides that has a perimeter of 96 inches and an apothem of 5 inches.Area = [?]in2
Jayne Stopped to get gas before going on a road trip the tank already had 4 gallons of gas in it which equation relates the total amount of gasoline in the tank
Need help with my question
similarities between chromosphere and photosphere
What is the area of this figure? _______ square kilometers