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

Officials argue that the government needs to reduce the national debt. Which actions are most likely to accomplish this goal?
Liquid water heats up and cools down quickly what causes this property
What is one of the most important rules to remember about healthy eating?        A. Eat a variety of foods, with moderation in everything.   B. Eat only low-fat
Daria applied a transformation to triangle ABC to obtain triangle A′B′C′. The two triangles are not congruent. Which of the following could be the transformatio
The interface should communicate the status of any activity initiated by the user is what type of interface design principle?
A club decides to sell T-Shirts for 15$ as a fund-raiser. It cost $20 plus $9 per T-Shirt to make them. How many T-Shirts need to be made to make a profit of at
Describe the ph scale
Why is it important to use a democratic method of choosing someone for a position of authority?
In order for a substance to change from a liquid to a gas, heat must be taken away heat must be added heat could be either added or taken away heat must be
CAN SOMEONE PLEASE HELP ME WILL GIVE THANKS AND BRAINLIEST ANSWER