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 the simplest form of 20_100
Suppose that, based on a sample, the 68% confidence interval for the mean of a population is (63,75). What was the mean of the sample? A) 73 B) 77 C) 81 D) 69
Mike kohl, an employee of spotswood company, has gross earnings for the month of october of $8,000. fica taxes are 7.65% of gross earnings, federal income taxes
Most homeostatic systems are ____? extrinsic, intrinsic, both, none of the above
Which characteristics must an object possess in order to be considered alive?
A group of organisms which lives together in an area is called a(n): species habitat community environment
Half of the carbon emitted into the atmosphere goes into the ocean. True False
Helppppp and thx for the helpppppp
What is the slope of 6x+10y=8
What is NOT generally a state reaction to terrorist acts? Question 6 options: A) removal of embassies B) negotiations C) bans on trade D) military interventio