zsdrfhn zsdrfhn
  • 03-01-2021
  • Computers and Technology
contestada

write a program to print the sum of series
1/2+3/4+5/6+/8+.......19/20

Respuesta :

Cytokine
Cytokine Cytokine
  • 03-01-2021

numerator = 1

denominator = 2

total = 0

while denominator != 20:

   total += (numerator/denominator)

   numerator+=2

   denominator+=2

print(total)

I wrote my code in python 3.8. Best of luck.

Answer Link

Otras preguntas

which of these is an example of an economic interest group? a.the Broadway league b.naacp c.Greenpeace d.national organization of women
This golden mask was found in the tomb of __________________, and it provided new information to historians about Egyptian culture.
What impact to guns have on our society, and how do we think our society can stop or lessen gun violience
Suggestions on how to combat human rights violation
Where does the heat from your body comes from?
Three points lie on the same straight line. If each pint can act as an endpoint, how many distinct line segments can be formed using the set of points?
The creation of an independent Israel was the goal of
what group consists entirely of organic molecules?
does anyone have the answers to this worksheet
Why was the pardon of Nixon controversial