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

Increase 28 by 7 percent
What is the mean of the set of numbers? {–11, 22, –2, –3} a. –6.5 b. –1.5 c. 1.5 d. 6.5
A reason why slavery developed in the American colonies was
Which term describes matter that is a substance made of diffrent kinds of atoms bonded together
why is it helpful to write a number as a product of primes?
Sarah is twice as old as her youngest brother. If the difference Between their ages is 15 years. How old is the youngest brother
Archetypes are a type of _______ that appear throughout history. A. subgenre B. foreshadowing C. palliation D. motif
What North American river empties into the gulf of California
Subtract. 8 ½ - 2 2/3 = 6 1/36 1/65 1/65 5/6
Currently, Earth's tilt is closest to _____. A. 0° B. 14.5° C. 23.5° D. none of these because, Earth's tilt changes dramatically with each orbit