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

If an ant runs randomly through an enclosed circular field of radius 2 feet with an inner circle of radius 1 foot, what is the probability that the ant will be
70-q-q-2q=80 We'll this is confusing
how can astronomers use rocks from the moon to estimate the age of the solar system ?
7 facts about water of southwest region
Whats the equation of a circle centered at (7,1) that passes through (-2,10)
Which sentence does not contain any errors? A. Fortunately, information on they're collars helped us locate the owners of the dogs.
Solve the simultaneous equations 2x+3y=-3 3x-2y=28
what are the components of blood?
estimate for 412*5.904/0.195any one knw the estimate for this and how to work it out
3)    Write an equation for a graph that is the set of points in the plane that are equidistant from the point  F(6,0) and the line x = -6.