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

Solve the equation s+2.8=6.59
Which Texas rancher was among the first to move cattle from the open range into fenced land
If f(x)=2x^6+x^2+2 then what is the remainder when f(x)is divided by x+2
What point is the projection of Q on RT????? A) R B) S C) T
Is it considered muscles' ennervation if the sympathetic fibers innervate vessels within the muscle ?(vasomotricity)
how does gatsby smile at nick? why is this important?
What are the affects, consequences of drinking and smoking underage? How can the young person then get support on how to stop them from drinking and smoking?
What type of figurative language is used in this passage from "Letter from Birmingham Jail"? Just as the prophets of the eighth century B.C. left their villag
15 POINTS COME AND ANSWER!!! Which characteristic describes all bacteria? A rod-shaped B microscopic C multicellular D autotrophic
which is a higher ratio, 6:9 or 3:7