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

The transfer of energy through varios stages in an ecological community is called
Stephen has a dog that weighs 5 times as much as ian’s dog. the total weight of both dogs is 72 pounds. how much does stephen’s dog weigh?
Como se forma o tufao
Without random assignment, which of the following can happen? 1. Naturally occurring confounding variables can result in an apparent relationship between the ex
70,231 to the nearest ten thousand.
how to write 62,049 in expanded form
By selling old cd's, sarah has a store credit card for $153.a new cd costs $18 .what are the possible numbers of new cd's sarah can buy
What is 5 and 1\4 as a imprpoper fraction?
A physicians order states that 10 grains of medication are to be give; the tablets contain 2.5 grains each. How many tablets should be given
How do you write 1/5 as a percentage and a decimal?