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

Solving systems by elimination: 2x + 4y = -4 3x + 5y = -3 Please show me your work so I can do the rest myself. Thanks!
Can u paraphrase the quote ”let things take their course”
Rewrite the function c(x) =9(x+3) using the distributive property
A pound of seedless red grapes costs $2.75. Drew must spend less than $9.35 on a bunch of seedless red grapes.Inequality:Solution:Interpretation:
What three islands are located off the East African coast
Trying to translate word problems. Five times the sum of 3 and twice some number is 70. what is the number?
What is the numerator or denominator of 4/5
Why is RNA necessary to act as messenger?
A child is standing across the street from his apartment . His mother is on their balcony . The angle of elevation between the child's eyes and his mothers eyes
How does transpiration play a  role in the water cycle ?