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

Archaeologists have held that the Casarabe culture, which emerged in the southwestern Amazon basin in the first millennium CE, was characterized by a sparse, wi
Find the area 5cm 19cm 27cm
storyline experience in going to school.
You change the angle of the slope in (Figure 1) a to 27.0 ∘ and use a different cart and a different bucket. You observe that the cart and bucket remain at rest
In the process control system the signal that represents set point is generated in the a. transmitter b. Sensing device c. controller d. storage tank
Solve the equation 2x28x-1=0 by completing the square. Give your answers correct to 2 decimal places.
A pet sitter charges $84 for eight hours of work. At this rate, how much does the pet sitter charge for seven hours of work?
% of all tobacco use occurring before age 26 A) 80% B) 90% C) 95% D) 99%
People do not experience age-related vision changes until the sixties.a.Falseb.True
the permeter of a rectangle is 24 inches the lenght is 2 inches complete an equation to slove for the width w