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 amendments, or changes, are there to the U.S. Constitution? a. 27 b. 14 c. 33
What are two movies which titles relate to 4th of July?
what is the 14 the amendment
This US national park covers 270 square miles, and 95% of it is underwater. Divers and snorkelers explore its shipwrecks and a bright coral reef, home to reef
This song, written and recorded by Woody Guthrie, puts to music a walk along our country’s highways, valleys, deserts, and wheat fields. Name the tune. a. “Am
If you are standing in front of 1600 Pennsylvania Avenue, what are you looking at? a. the Capitol building b. the Metropolitan Museum of Art c. the White Hou
Ratio of the change in an amount to the original amount expressed as a percent. Dependent variable Percent of change Percent of decrease Percent of increase
When were fireworks first used in an official Fourth of July celebration?
Which geological features did Sally Ride observe from orbit?
The Virginia town where Robert E. Lee surrendered to Ulysses S. Grant in 1865, ending the Civil War