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

What problems do you think Rome had by having an army largely made up of mercenaries
What is the acronym for a viraLlinfection that causes inflammation and lung damage?
Jamie is single. in 2017, she reported $104,000 of taxable income, including a long-term capital gain of $5,400. what is her gross tax liability, rounded to the
Write an equality that represents the phrase "the sum of 4 and x is greater than 6." Draw a graph that represents the inequality and check your solution
Simplify the expression
Which expression is equivalent to 2a+3b+4b+5a+17?
What is the heat content, q, of the reaction when glucose burns? A. q = 0 B. q > 0 C. q < 0 D. q ≥ 0
how many times can 2 go into 245 in fraction form​
Which characteristic sets streams and rivers apart?
I NEED HELP ! Ava's gym membership costs $50 each month plus a one-time $100 fee. Mark's gym membership costs $60 each month plus a one-time $50 fee. At how man