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

which seismic wave moves through earth at the fastest speed?
Which of the kingdoms has the smallest number of known species
Dominick lives 1 3/4 miles from his school.  If his mother drives him half the way, how far will Dominick have to walk to get to school?
Explain how a species can evolve through natural selection.
which state of matter has the least amount of energy?
Which of the following organisms can perform alcoholic fermentation? (1) yeast, (2) humans, (3) bacteria. a. 1 and 2 b. 1 and 3 c. 1 only d. 1, 2, and 3
The length of a diagonal of a cube with edge length 25cm
Can somoene help me with this question??How might the history of the U.S. have been different if the original thirteen states had been guaranteed a perpetual ma
which factor made the most difference in how agriculture affected the economies of the colonies?
Determine whether the sequence coverage or diverges. If it converges, give the limit. 48, 8, 4/3, 2/9, ...