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 please need help on this one
Find the area of the figure. A) 41 cm2 B) 90 cm2 C) 95 cm2 D) 100 cm2 E) 106 cm2 A is out
An alien has just landed from outer space. Explain to that alien the purpose of government.Write a paragraph with at least 7 sentences.​
HELP- According to Figure 3, which fuel source, coal or bioenergy, produces greater carbon emissions for the production of 5 MW electricity for one year? Approx
Explain ray diagram and derive first law of reflection from that.
A payment made to expedite or to secure the performance of a routine governmental action is called a
What are the dimensions of the vertical cross section shown on this right rectangular prism show. Below
Money is everything?
pls helppppppppppppp
4. The mass of a single proton is approximately 1.67 x 10-27 kg. The mass of an electron is approximately 9.11 x 104 kg. How many times bigger is a proton than