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

Determine whether the origin is included in the shaded region and whether the shaded region is above or below the line for the graph of the following inequality
why do you need two different circuits of blood vessels in your body​
What is the slope of the line containing the midpoint of the segment with endpoints at (0, 0) and (2, 3) and the midpoint of the segment with endpoints at (5, 0
2. Explain the strengths or skills that you have and how they contribute to either academic or personal accomplishments.
-> What is permanant induction?
in the number 549.062 which number is in the 100th place
What is one example of the ineffectiveness of the colonialist activities that Marlow witnesses in Africa? O A. An accountant teaches a woman to clean his clothi
So a company has increased the number of jelly beans in a packet. Their new packet has 25% more jelly beans than their original packet. Their original packet co
Write as many equivalent expressions to 3/4(4x-8)+1/4(4x-8)
what was the Albany Plan called for ?