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

Which of the following was a result of the Japanese attack on the U.S. naval base at Pearl Harbor
Help please --- multiplying rational numbers
help me I'm lost on this unit.​
pls help, thanks for the answer thanks
Forty tickets at $10.50 each cost?
How do humans become infected with West Nile virus?
How are vibration waves and energy related to sounds
2.Do you think the 2nd Amendment stands the test of time? Why or Why Not?
what is the most accurate definition of a central idea in a literary text? the idea that most supports the theme the universal lesson an author wants the reade
Which of the following best describes the solution to the equation below? 8x + 3 = 8x + 3 A. exactly one real solution, B. infinite real solutions C. no real so