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

Answer each question and round your answer to the nearest whole number
What would you do to photograph a frog in a low-light exhibit at the zoo? Use your camera's flash. Stand back from the glass. Increase the ISO setting. Ask
The radius of a circle is 19.2 in. Find the circumference to the nearest tenth.
the pattern continues, what would be the eighth number in the pattern?4. 25, 28, 32, 37, 43 ______ PLS HELP ME
What did Spanish colonists build in the Americas to help convert people to Catholicism?
Please, help. iReady test and I can't figure out the answer.
. Which side has the ability to mass produce ironclads? A) USA B) CSA
The student enrollment of South High School was 1,350 students in 1995 and increased by 15% per year until 2010. Approximately how many students were enrolled a
what is memory in your words​
the molar mass of CCI2F2