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

Factoring the trinomial 9 + 8t^2 - 18t How would I factor and simplify this trinomial?
What is the systematic name of PbO?
What are some ways authors engage readers’ interest and influence readers’ emotions?
What happens when both numerator and denominator are negative?
How does photosynthesis help plants meet their basic needs?
Ok I have no clue for this one I’m not sure what to make out of this one please help
A government that was based on representation not a ruler was accomplished by the establishment of which governing group?
What type of function is represented by the graph below?
If calcium carbonate (CaCO3) decomposes, what would the product of the reaction be?
When you move on the decimal point two places to the left to convert a metric until, it is the same as ______ the measurement by 100.