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

If you lived under an economic system in which the government controlled all aspects of production, which economic system would this be?
What was the main purpose of the Hartford convention.
What was the purpose of a trust? A. to avoid an oversupply of goods available to consumers B. to increase competition and free trade among busin
1. The slope of line p is a) -3 b) 1.5 c) 3 2. the slope of line q is a) -3 b) 1.5 c) 3
Identify the major transportation improvements in this period, and explain how they influenced the market economy.
A box is 2 inches long, 1 inch wide, and 6 inches tall. What is the relationship between the volume of this box and the one in problem 4? Tell how you know.
Please help I’ll give you brainliest!
When should a systems analyst decide a design issue, and when should users be allowed to select what works best for them?
There was no _____ of the central government, and this no separation of power at the _____ (central) level.
In Act 1, Scene 2, what is the primary way the reader learns about Macbeth's actions on the battlefield in this scene ?