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

someone help me out plz What is the range of the function y=∣x+3∣−3 if the domain is x∈R?
Which of the following is a shrub ? (a) Tomato (b) Mint (c) Coconut (d) Lemon
purpose of the electrocal college and why the founders wished not to have a direct democracy
What is heat energy ? Plz
In what ways did Oprah overcome her circumstances?
91/100 in simplest form
Add −1.25+2.5 Plot the first addend and the sum on the number. Please tell the explain
1. What is the International System of Units and its abbreviation?
Evaluate the expression 5(7 – 4)2 = 3 + 11. (5 points) 14 3 33 26
The distance between City A and City B is 270 miles. On a certain map, this distance is scaled down to 4.5 inches. If the distance between City B and City C on