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

What is the main source of conflict in the Tower of Babel?
Why did the author most likely choose this structure for his poem?
All of the following are examples of the evidence that supports the endosymbiotic theory EXCEPT A. Mitochondria and chloroplasts divide in a process resembling
Instructions: Three of the following groups of words are sentences. The rest are fragments. Find the fragments and add words needed to make them sentences. Writ
Explain the formation of an ionic compound between a metal and a non- metal by transfer of electrons with Mg as the metal and chlorine as the non metal to illus
To pay for a camper bill made a down payment of 3900and took out a loan for the rest. On the loan he paid monthly payments of 427.20 for 4 years
Please tell me the answer of the following (a) or (b) 1. The Grand Canal connects the capital of Beijing in North to Hangzhou in the South. a) True b) False 2.T
What is the simplified expression for (screenshot) A. 3/4 B. 4/3 C. 4²/3 D. 3³/4
Give the coordinates and quadrant of Point Z.
Need help (asap) please