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

Please answer the surface area!!!!!!!!!! ASAP
what is the Mass of a Penny
Mary is 64 inches tall. This is 20 inches less than twice Raul's height. What is Raul's height?
Which of the following data sets represents a positive correlation?
In 1883, the Supreme Court ruled that there was a difference between
A car that originally cost $20,000 depreciates (loses value) by 15% each year. In about how many years will the car be worth half its value? Use the equation 10
what are the importants democrate feature of parliamentar and presintial fforms goverment
The deli brought in a total of $580,800 last year. If they served an average of 200 customers each day over the 363 days that the deli was open, what was the av
How to solve a quadratic sequence
A triangle with vertices at A(20, –30), B(10, –15), and C(5, –20) has been dilated with a center of dilation at the origin. The image of B, point B' , has the c