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

are are 11 books on a short 4 of these books are new. The rest of them are used. (a) What is the ratio of used books to all books on the shelf? () What is the r
what is the importance of local Technology​
PLEASE HELP!!!!!!!!!!!!!!!!!
Savor kindness because cruelty is always possible later.” meaning of this quote for excellent answer I will mark brilliant ​
Select the correct answer. Decide if the clause in capital letters is DEPENDENT or INDEPENDENT. The mechanic WHO FIXED MY CAR had been at the garage for six mon
Select all that apply. Remember that you can add prefixes and suffixes to a word to create a new word. Which of the following are new words that come from the r
What are the x intercept and y intercept of the graph of 5x+8y=20
Which of the following examples of energy transfer CANNOT happen? A toy car rolling down a hill increases speed and then rolls to a stop. A bunger jumper jumps
What is the slope of any line that is perpendicular to the line 8x + 4y = 64? A. 1 / 2 B. -2 C. – 1/2 D. 2 15 POINTS
Just as energy flows through an ecosystem, matter also moves from organism to organism and from organisms to the environment. Using either a kelp forest or a hy