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

Rachel and David share 40 biscuits between them in the ratio 2:3, How many biscuits do they each get?
find a common solution for each system of equations: y=3x+5 y=-5x-3
Which ancient civilization is associated with the Twelve Tables, an extensive road system, and the poets Horace and Virgil?
where did japan first expand its empire after 1930
List all the commonwealth games mascots from 1982-2014
Which characteristic is shared by sonnets and haiku?
Guess the mystery number.The number is greater then 10 and less then 18. The number is the sum of two identical odd numbers. What is the number? Show how you fo
A curved section of roadway is in the shape of a circular arc of 410-m radius. The curved section is horizontal, not banked. The coefficient of friction for tir
simplify (1/x) + (1/(x+h)
What is a synonym for sensory language?A.simileB.fluencyC.metaphorD.imagery im thinkin D?