Westonci.ca is the Q&A platform that connects you with experts who provide accurate and detailed answers. Our platform provides a seamless experience for finding precise answers from a network of experienced professionals. Get detailed and accurate answers to your questions from a dedicated community of experts on our Q&A 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.