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

The temperature of a gas is increased. Which statement best explains the effect that this has on the motion of gas particles
I DON'T UNDERSTAND A THING THEY'RE SAYING!!!!!! SERIOUSLY BRAINIEST TO FIRST 2 CORRECT AnSWERs!!!!
Hank is running sprints on a football field and likes to challenge himself, so instead of running straight down the field, he runs on the diagonal. Of the field
when I did not mean to ask the questiona.
Fact Pattern: Blaster, Inc., a manufacturer of portable radios, purchases the components from subcontractors to use to assemble into a complete radio. Each radi
Here is a picture of three towers. Not all the cubes can be seen in the towers. Edith uses 1 cube to build tower 1. Edith uses 6 cubes to build tower 2. There a
Why does Lara, a nursing assistant, allow her knees to meet the knees of her patient Hugh when moving him into a wheelchair? It allows the patient to aid the tr
ANALYSIS Questions: 1. Look at and think about your hand. a. Where would you expect to have more touch receptors: on the palm of your hand or on the back of you
find the value of xfind the value of 6 x by 3 ​
BRAINLIEST IF YOUR RIGHT!!!