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

Select the element with the greatest metallic character. Li, Al, Cs, Ca​
Can a new element be discovered and be placed in between copper and nickel on the periodic table? Explain your answer.
Please help me label Will mark brainliest !!!
(5 points) solve 25 = 5^x - 4
What is the equation of the axis of symmetry?
do you ever feel like that your not as close to someone and that it all your fault because you been an idiot to that one person that you care about do you ever
Help please with 1. And 2. This is also for Monday morning. I will put the branliest for the first answer.
Analyze the map below and answer the question that follows. A topographical map of the U S. Regions are labeled 1 to 6. 1 is on the west coast of California, Or
(1)The primary staples of the ancient Greek diet were the grains, known as the cereal grains.(2)The most important of the cereal grains was barley.(3)Although b
A hovercraft takes off from a platform. Its height (in meters), x seconds after takeoff, is modeled by h(x) = -(x – 11)(x + 3) How many seconds after takeoff wi