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

The ______ made it apparent that russia was desperately in need of industrialization and reform A)american revolution B) industrial Revolution C)crimean war D)N
During the 1920s, people would buy stock on margin, which meant that they
What are some causes and effects of rapid population growth between 1900 and 1945?
Which word in the sentence does the participial phrase modify? Reaching her fingers to her toes, Katie slowly stretched her back. a. slowly b. Katie c. back d.
If you push down on a table with a force of 5 newtons, what is the normal force pushing back to you
un text cu sensurile diferite ale cuvuntului torturi
A package of ground beef costs $6.98. The price per pound is $1.86. How many pounds of ground beef are in the package? Round to the nearest hundredth.
The evolution of populations due to chance is A)genetic drift. B)has more effect in large populations than in small populations. C)gene flow. D)natural selectio
The exact answer and the estimated answer will always be the same. true or false
what is 2096 to the nearest thousand