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 rubbed a piece of topaz against a piece of Quartz, what would happen?
What are the two most reactive groups of elements in the periodic table?
Which is larger, 7/10 or 3/4?
help me solve this algebra question pleaseeeeee 3(6-4x)-27x+10x-31
Which description of Adam Smith is accurate? A. author of Das Kapital and founder of communism B. author of The Wealth of Nations and "father of modern economic
if you had been a merchant in Europe during 1400s would you have supported attempts to find new routes to Asia
Carl has three lengths of cable, 5 _ 6 yard long, 1 _ 4 yard long, and 2 _ 3 yard long. He needs at least 1 yard of cable. a Which two pieces together make a le
"My vegetable love should grow/Vaster than empires and more slow" is an example of A) paradox B) hyperbole C) metaphor D).simile Having a hard time, I'm temp
What is the best definition of the term “cottage industry”? a group of cottages that serves as a factory a group or community that starts an industry together p
how do you say half brother and half sister in spanish