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

Find the median of the following data: 10,16, 15, 14, 8, 21, 10, 5, 19, 18, 4, 5, 16, 12, 10,9
Which of the following helped give rise of the Nubian civilization? A. Seasonal flooding of the Tigris and Euphrates Rivers B. Development of a canal system alo
A study to determine the sensitivity and specificity of a new test for macular degeneration is conducted on 2430 people. Macular degeneration occurs at a rate o
which of the following is an example of a wrong reason to choose a career [Apex]A. Wanting opportunities for growth B. Keeping yourself challenged C. Taking the
PLEASE HELPPPP!!!!!! Events A and B are mutually exclusive. Events B and C are non-mutually exclusive. Which Venn diagram could represent this description? Ima
find the slope of 8x+3y=-9
The glucose-making part of photosynthesis take place in what
9 cu yd 113 cu in - 4 cu ft 129 cu in
(5+9)+7 to associative
Solve the following addition and subtraction problem 72 km 95 hm + 7 g 12 cg 18 mg =