Welcome to Westonci.ca, where you can find answers to all your questions from a community of experienced professionals. Ask your questions and receive accurate answers from professionals with extensive experience in various fields on our platform. Get quick and reliable solutions to your questions from a community of experienced experts on our platform.

write a program to print the sum of series
1/2+3/4+5/6+/8+.......19/20

Sagot :

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.