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

Please help me!!!!!!
Consider a function f(x) = x2. A second function h(x) is the result of reflecting f(x) across the x-axis and translating it 3 units in the positive y-direction
What is the difference between fat and water-soluble vitamins? Can too much of a specific vitamin cause toxicity? Why or why not?Which vitamin supplements have
i though a=9.8 is in free fall?
What is the meaning of DHCP
Solve for x n= 2x+1 / 2 x=_____
Find the perimeter of a rectangular garden that has a width of 4x-6 and a length of 2x + 4.
Problem 3: What is the missing number? 13 12 25 17 BrainsYoga.com 6 2 www.Brainsy What is the missing number
What is the rate of change of y with respect to x?
For tropical fish, aquarium water should be set to 76° F with an allowance of 4°. a. Explain how to write an absolute value equation to represent this situatio