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

i need someone whos really good at geometry to help with my finals pleaseeeeee
Ancient grew to 40 m, but are smaller today.
What separation technique would most likely be used if a solvent were saved? A. Melting point separation B. Distillation separation C. Density separation O D. C
Individuals with chronic alcoholism are predisposed to intracranial bleeding and hypoglycemia secondary to abnormalities in the:
A cube has an edge length of 12 meters. What is its volume, in cubic meters?
Relationship between culture and communication design
Select all the situations where knowing the volume of an object would be more useful than knowing its surface area. A. Measuring the amount of gasoline left in
x=3y+1 2x+4y=12 Solve each system by substitution
Based on this stock price model, what is the best prediction of what the price will do next?
I don’t really understand this please help me.