Westonci.ca makes finding answers easy, with a community of experts ready to provide you with the information you seek. Discover precise answers to your questions from a wide range of experts on our user-friendly Q&A platform. Join our platform to connect with experts ready to provide precise answers to your questions in different areas.

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.