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

36 is _______% less than 60?
two methods of active transport
3 ( 4d + 1 ) - 9d = 6 - 2d
10u + 7 = 8 ( 2u - 4 ) - 9
what are three ways water erodes the surface of earth
two methods of active transport
3 ( 4d + 1 ) - 9d = 6 - 2d
Your model locomotive is 18 inches long. It is an exact model of a locomotive that is 72 feet long. A window on the locomotive is how many times wider than a wi
2 ( 4a - 12 ) + 3a = 6a + 1
A snowball is launched horizontally from the top of a building at v = 16.9 m/s. If it lands d = 44 meters from the bottom, how high (in m) was the building?