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

Which of the following can be tentative? A.) a movement B.) a suggestion C.) a proposal D.) a triumph This is a multiple choice answer
while playing a game maria defeated 8 enemies with each enemy defeated earing her 7594 points if she traded in all her points for 2 extra lives how many points
Two boxes are shaped as right rectangular prisms. The larger box is has a length of 24 cm, a width of 10 cm, and a height of 30 cm. The dimensions of the smalle
Write at least 50-100 words about social standard in whites and black when it comes to poverty.
Density differences cause the
when i was six, i learned how to swim. what is how to swim? a) subject B) predicate nominative(c object of preposition (D direct object
how does a steam engine work? steam causes wheels to turn steam expands and spins an axle steam turns a turbine steam enters a cylinder and pushes a piston
A. B. C. D. Please help
Most people in attendance were TOURISTS. What kind of compliment is the word in caps?
Book sequence Percy Jackson and the lighting thief?