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

round 7,782 to the nearest hundred
Susan ........ (Run) to school because she was late.
Emma uses a 250 meter roll of crepe paper to make streamers. How many dekameters of creme paper does emma use?
what is 15/24 in simplest form
what was NOT a primary goal of marriage in a feudal system at the noble level? A. Exchange of land and goods B. love and companionship C. Political arrangement
Express the perimeter of the triangle as a polynomial. 8x+2 5x-4 9x+3
What is the additive inverse of -4a
Companies raise funds to expand their business by
What kind of problems did increased urbanization cause? During time of industrial revolution
Dalia has just enough money to buy either 6 pears and 20 oranges or 12 oranges and 11 pears. A pear costs $ 0.80. How much does an Orange cost ?