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

I'M SO STUPID SO PLEASE HELP YA GIRL OUT
Are these dimensional analysis answers correct?
Lupe is applying for a summer job. Six employees doing the same work earn $10.50, $10.50, $10.50, $10.50, $10.50 and $25.00 per hour. In the interview, the boss
What operation does the Product Rule use with the exponents? A) Addition B) Subtraction C) Multiplication D) Division
Which is true of a circle? The radius of circle is sometimes longer than the diameter of a circle. Each circle has only one diameter. Any two points on the circ
Radar consists of electromagnetic waves. A warplane is rendered invisible to enemy radar by applying an antireflective polymer coating. If radar waves have a fr
Can someone please help with this question
MA-4 (Static) Recording a Bond Investment Held as Trading Securities LO A-1 On January 1, 2018, Brian Company purchased at par $800,000, 6 percent bonds issued
Tim installs 45 square feet in 50 minututes at this rate how long does it take him to install 495 square feet
True / False - Better mass production techniques was a main reason for the increase in cars made in the 1920’s.