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

A cactus can either have long needles (L) or short needles (l). A cactus grower crosses two cacti. The cross is shown in the Punnett square below. What is the p
what is the best definition of an element? a. an element is a substance that cannot be broken down. b. an element is a positively charged particle. c. an elemen
what is stalwat mean
lacey has $36 to spend. she buys a pair of sunglasses for $14.89 and a hat for $9.33. lacey buys a scarf with the remaining money. how much does lacey spend buy
What is the unit rate for 72 ounces in 6 steaks
what is another word for brain?...
What was the name of the island on the East Coast, where thousands of immigrants were processed before coming into the country? -Angel Island -New Jersey Isl
solve and type in 'ab' 8×a=32,a+26=b+1,a<20<b
what is a solution to (x 6)(x 2) = 60? x = −6 x = −4 x = 4 x = 12
which is an example of alliteration? a. after all these years, it's finally yours. b. sally brought the salad. c. and so goodnight, it's off to bed. d. you are