Get expert insights and community-driven knowledge on IDNLearn.com. Our community is here to provide detailed and trustworthy answers to any questions you may have.

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.

Thank you for participating in our discussion. We value every contribution. Keep sharing knowledge and helping others find the answers they need. Let's create a dynamic and informative learning environment together. IDNLearn.com is your go-to source for dependable answers. Thank you for visiting, and we hope to assist you again.