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

how were north american colonies all similar in the 1700s?
What is the amplitude of y=1/2 sin2x
what is a high structure part of a church which has 5 letters
in the number 13,407.036 there are two 3's. Explain how the values of the 3's are related.
Why is sodium sulphate hemihydrate called as "Plaster of Paris"?
in the number 13,407.036 there are two 3's. Explain how the values of the 3's are related.
What is the amplitude of y=1/2 sin2x
What were the major causes of WWII? Please include at least 4 answers.
What is the least common denominator for 5/6 and 3/8. 3/4 and 6/7
What are the functions of receptors in our body? Think of a situation where receptors do not work properly. What problems are likely to arise?