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

Words, phrases, and sentences that provide a smooth flow from one idea to the next are called
Plz help ASAP"The Celluloid Cinema sold 150 tickets to a movoe. Some of these were child tickets and the rest were adult tickets. A child ticket cost $7.75 and
The lockers at Smith High School are numbered 1-1000. Seth starts at the beginning and opens the even numbered lockers. Tacoda then starts at the beginning and
What is equivalent to 6/8?
Which intrusive feature may start as a sill but, as more magma builds, it pushes upward like a lens?
Review the meaning The boy's life is in endangered which best identifies and explains the evidence that supports this meaning A. "With mast, and helm and pennon
which roman feats of engineering most helped the empire expand? A. Aqueducts and canals B. Bridges and roads C. Colosseums and temples D. Public baths and mar
Bob and jill are friends! bob has 5 cookies. jill eats 3. how many cookies are left?
The mass of an object _____. A. changes with location B. is the same everywhere in the universe C. depends on the amount of gravity D. is different on different
What is the simple interest for 1 year on a loan of $2000 at 9% interest?