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

3(x-2)+9=x3+20 please solve the eqaution fully
WILL GIVE BRAINLIST!
WILL GIVE BRAINLIEST Zeke is racing his little brother Niko. They are running a total of 30 yards and Zeke gives Niko a 12 yard head start. Zeke runs 2 yards ev
HELP ASAPP WILL MARLY BRAINLIEST IF RIGHT
What is the value of the 9 in the number 92,136? If the 9 was moved one place to the right, what would its value be? Show your Answer.
before presenting an essay, writers should take time to make certain the message and tone are appropriate
How many atoms are in a 158.69 g sample of nickel?
You and a friend went to the movies. You decide to get some snacks. You got 2 boxes of candy that cost $3.49 for each box. You also purchased a soda for $4.82.
Karen's salary used to be $96,900. After changing the amount of time she works, she has begun earning $58,140. By what percent did Karen's salary decrease?
what is the answer to this solution ?