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

X Y 3 −2 6 −4 9 −6 12 −8 Determine whether the table represents a proportional relationship. If a proportional relationship exists, what is the constant ratio
7 Next Post Test: Nutrition and Energy Submit Test Select the correct answer. Which action can trigger lactic acid fermentation in our bodies? OA. drinking coff
What fraction of an hour is 50 minutes? Give your answer in its simplest form.
What is the mean of -15, -12,8, and 9?​
Which of the following NOT a reason firms are expanding their supply bases to include foreign suppliers?a. Lower product costb. Lower shipping rates due to lowe
help!!!!! What process works with continental divergent boundaries to form rift valleys ? Assignment due in 3 hours :(
Utilization is defined as the ratio of effective capacity to design capacity. True or False
Several processes form metal ore. Match each process to its description. volcanic activity weathering hydrothermal energy Rocks break down as they interact with
Find the area of the shape shown below.
when an atom in a reactant gains electrons, what happens to its oxidation number?O AIts oxidation number decreases.B. Its oxidation number doubles.C.Its oxidati