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 much larger is one cubic foot than one cubic inch
how would I write Doubling the quantity of a number decreased by six is less than negative thirty-six
Tomas ran 2 miles at track practice. Satomi ran 50 yards more than half as far as Tomas.How many yards did Satomi run
how do two passages work together to develop Bacon's argument?
Please can someone solve 8n + 6 = 4n + 30
Why does Romeo feel "reviv’d,” or comforted?
Tameka works as a health educator. Her job is to go out to the community and teach classes on the benefits of proper nutrition and exercise programs. She uses t
In "Tokyo," Ryo and Tsuruishi have all of the following in common except (1 point) they both have children they have both been married they are familiar with Si
How many different rectangular prisms can you make with 4 cubes
1 roller - skate has 4 wheels. how may wheels are there altogether if there was 236 pairs of roller - skates