Westonci.ca is the best place to get answers to your questions, provided by a community of experienced and knowledgeable experts. Get immediate and reliable answers to your questions from a community of experienced experts on our platform. Connect with a community of professionals ready to help you find accurate solutions to your questions quickly and efficiently.

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.