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

[Pre-Calc] Please Help! I don’t know where to start. How do I do this?
A line is perpendicular to y = 4x + 5 and intersects the point (1, 3). Find the equation for this line. y - [?] = f(x- -1) Hint: Use the Point-Slope Form: y - y
3x + 4y - 7z + 11 Identify constant term
Mis padres y yo ______ enfadados. 1. estoy 2. estamos 3. están
a round cake pan has a diameter of 6 inches which is closest to the area of the bottom of the PanA. 20 square inches B. 30 square inches C. 40 square inches. D.
Please Help me need help
the main reason the cold war was fought was​
The Nuremberg Laws stated all Jewish citizens had to live where? A. In the country (farmland). B. In apartment buildings (tenements). C. In one part of town (gh
WILL MARK BRAINLIST Identify cach difference between the given equation and graph in comparison to the graph of y = x ^ 2; y = x ^ 2 and state what each diffe
help me aljdjjasonndsj