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

How many moles of nitrogen gas are in a flask with a volume of 0.25 L at a pressure of 2.96 atm and a temperature of 300 K
(7.7x10^8)x(4.9x10^-5)
Prepare supply club's journal entry to record july and august sales. during august, customers redeem loyalty points on $60,000 of merchandise. seventy-five perc
Which group is associated with this text?league of Latin American citizens Japanese American citizens league united Negro improvement association national Assoc
The graph of the function y = x^2 is reflected across the x-axis, then translated two units left and six units down, write an equation to represent the new func
In your own words explain the importance of D-Day for the Allies winning The Second World War.
!PLEASE HELP ASAP! A cape fish has 104 chromosomes, Explain why it’s germ cells cannot go through mitosis to create egg and sperm cells.
Do not need a explanation but would be nice!
What is the mean of 1/4. 1/2. 1/2. 3/4
is 69 degrees a vertical or adjacent? please help thank you