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 United States and Soviet Union signed ______________ during George H. Bush's administration
What's figurative language
Tectonic plates are a part of the a. mantle b. outer core c. lithosphere d. asthenosphere
In florida if you have a learners permit you may only drive at what time during the first three months
Find the sum of -37 (-12).
Which of the following is an example of an extrusive igneous rock? A. rhyolite B. granite C. andesite D. coal
who was the ninth president
Relationships among people are a. not influenced by people's ideas and attitudes. b. usually simple and easy to understand. c. one of two types—social or wor
Who began a vast global exchange that included people, plants, technologies, and cultures? a. samuel de champlain c. bartolomé de las casas b. christopher co
Importance of the cell cycle