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

What is the explanation of a phenomenon that can be supported or disproved through a set of carefully designed procedure known as?
Cell division and differentiation first begins during the ________ stage of prenatal development. psych
Parallelogram CARD has vertices (5, -2), (-1, -2), (1, 2), and (7, 2), respectively. The diagonals, CR and AD intersect at Point T. What is the length of CT? Wh
Two of the nations who managed to gain their freedom from Japan following World War II were _____.IndiaIndonesiaBangladeshTaiwan
i need some help please
Active listening is an important part of communication. Why is active listening important and what are the four rules of active listening? (Site 2)
How does Archimedes’ principle explain how much fluid is displaced by an object?
What does the Necessary and Proper Clause give to Congress?
Line JK passes through points J(–3, 11) and K(1, –3). What is the equation of line JK in standard form?
What is the solution to the following system of equations?