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

classify 4x^5+2x^4-5x^3+12 by number of terms
Why was doryphoros or spear bearer famous throughout the ancient world?
America wanted to end japan's aggression by placing a(n) _______ to cut off the oil and scrap metal supply.
The base of a triangular prism is a right triangle with hypotenuse 10 m long and one leg 6 M. If the height of the prism is 12 M, what is the volume of the pris
How do you recognize a water emergency?
Gatsby's actions in preparing for daisy's arrival seem both flamboyant and absurd. what does he do? why?
Which of the following choices is the value of cscΘ? a) 12/15 b) 9/15 c) 15/12 D) 15/9
Why do they take away your shoelaces and belt in jail monster?
An exothermic reaction ___ energy. A) releases B) absorbs C) creates D) decreases
according to advocates of social Darwinism government should