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 is a characteristic of hunter-gatherer societies?
w and y are supplementary. find m
Problem 3 A bank charges a service fee of $7.50 per month for a checking account. A bank account has $85.00. If no money is deposited or withdrawn except the se
Kate is arranging new furniture in her rectangular sitting room. She has mapped the arrangement on a coordinate pane. A,B and C represent the sofas, V1 and V2 a
Which statements about tornadoes are true? Check all that apply. (A) About 12,000 tornadoes hit the United States every year. (B) A tornado looks like a funne
In cents, what is the least total amount that cannot be obtained by using a combination of fewer than eight coins from a collection of pennies, nickels, dimes a
what is the mass of 4 molecules of CO2
Which of these effects of mass production techniques used during 1920
Which words best describes the speakers?
WHOEVER GETS THIS RIGHT GETS THE BRAINLIEST!!! The half life of a soul smelling substance is 4 years. If you have 8 oz of this strange substance, how much of it