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 help and explain how to do it if you can :)
Slope: -5, y-intercept:3
what is a reform of Julius Ceasar that affects us today
What is 3068 rounded to the nearest thousand
which of the following is a polar molecule?
As stream velocity decrease, which factor will likely increase? A) erosion of the stream bank B) deposition of material in the stream C) amount of material car
Of what historic importance in Titusville, Pennsylvania?
can u show me how to solve this problem 0.11 times 0.91
Who is the presiding officer of the Senate whenever the Vice-President is not present? Speaker of the House Attorney General Secretary of State President pr
What Percentage did you tip if your lunch was $10 and you left $2