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

A circle has a radius of 4/9 units and is centered at (-6.2,5.8). Write an equation of this circle
which ones are right to this question?
A researcher hired by a department store wants to examine whether manipulating the room temperature to be hotter as opposed to cooler affects sales of air condi
Let u=ln x and v= ln y. Write ln( √x · y^2) in terms of u and v.
A gas heated to millions of degrees would emit
Why was the storming of the bastille a significant event?
What is the value of x in the equation 3(2x + 4) = ?6? (4 points) ?3 1 12 19
Find y if the slope between (3, y) and (11, 15) is 1.
What role does setting play in "The Open Window"?
Estimate the limit, if it exists.