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 circuit consists of a battery and two resistors connected in parallel. If the resistance in both resistors is doubled, and the current is kept constant, how d
A student performed an experiment to determine the specific heat of an unknown metal
Rick took a 20-minute coffee break. at the end of the break, it was 10:00 a.m. what time did rick start his coffee break?
Who did jesus refer to as the rock on which the christian church would be built? a. pontius pilate. b. paul. c. peter. d. constantine.
Can someone please tell me if I am correct?
what would be the total length of the 2 1/4-inch barrettes if Mikayla places them end to end?
A 2kg object is moving horizontally with a speed of 4 m/s. how much force is required to keep the object moving at this speed and in this direction? explain.
In a survey of 420 people, 85% said they drink coffee
I'm stuck on this question: Find the 3 consecutive numbers whose sum is 438. Can someone take me through it?
I sold 8 of which were ducks what the next donut sold will be a duck