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

If one half of a number is 8 less than two thirds of the number, what is the number? 1) 24 2)32 3)48 4)54
Calculate the number of moles 2.25 g of Na2CO3  0.800 g of NaOH  17.75 g of Na2SO4
there are 12 small gift bags .Each bag ca
Two trains leave the station at the same time, one heading East and the other heading West. The westbound train is going 60mph. The eastbound train is going 80m
is the decimal form of 13/3 a rational number.
What is 8.7 billion as a scientific notation
If a line has no y-intercept, what can you say about the line?
What is the best estimate product for 289 and 7
What is Circular Motion?
5.4 5.400 less greater