zsdrfhn zsdrfhn
  • 03-01-2021
  • Computers and Technology
contestada

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

Respuesta :

Cytokine
Cytokine Cytokine
  • 03-01-2021

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.

Answer Link

Otras preguntas

check the given picture below.
What is the fourth term of ( 3x + y ) ^4
now a days water management is very essential write your opinion on this​
+ Round 26 to the nearest 10. Round to 20 20 21 22 23 Round to 30 23 24 25 26 27 28 29 + 30 = answer??​
Briefly describe major sings childhood
Imagine (0) aren’t any mobile phones or computers, and your house (1) internet. It’s the perfect holiday! Our computer doesn’t (2) help us relax. It (3) us
What character trait did Nya have that helped her get through her long walks to water
What is −314×435 ? Write the answer as a mixed number in simplest form.
The tallest point in England is 3209ft above sea level. The lowest point in England is -9.8ft below sea level. What is the difference between the tallest and lo
You borrow 600$ to buy a violin.simple annual interest rate is 15$ you pay off the loan after 2 years of equal monthly payment. How much is each payment