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

Name two definite articles and two indefinite articles in Spanish. Question 4 options: él, ella, uno, una el, él, la ella el, la, un, una un, uno, una, ella
Solve the system using elimination 6x-3y=15 and 7x+4y=10
A line of roses forms the diagonal of a rectangular flower garden. Th e line of roses is 18.4 m long, and one side of the garden is 13 m long. To the nearest te
If cells are: a1=90, a2=85, a3=80, a4=75, and a5=75. what will be your formula if you are going to get the average?
What nine new nations were created by the treaty of versailles a new look for europe?
What is the total amount of gordon's federal income tax withholding? a. $750 b. $1,500 c. $1,800 d. $3,300?
Please help. Thank you :)
What happens when new information from an experiment produces results that partially support a theory?
Decide si se usa el verbo correctamente. Cuando yo era joven, me encantaba visitar a mi tío. correct incorrect depends on the intended meaning
A pound of coffee beans yields 50 cups of coffee (4 cups = 1 qt). how many milliliters of coffee can be obtained from 2 g of coffee beans?