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

A conviniénce store sells two brands of orange juice .brand a contains 11 fluid ounces and costs 2.31 brand b contains 15 fluid ounces and costs 2.70
how will the indigenous people begin to resist european control in the 19th century?​
5. Which Olympians were the children of the Titans?
Kristina used synthetic division to divide the polynomial f(x) by x−2, as shown on the table. What is the value of f(2)? −14 −11 −2 −1 A synthetic divi
MS. Arvelo wants to buy a new TV.She makes $50 a week pus an additional$20 each person she tutors. How manypeople will she have to tutor if the TV cost120 dolla
The dot plots show the forearm lengths of 2 groups of 10 students. What statements could be true A.The standard deviation of group A is equal to the standard d
Brian went shopping and spent $47 on jewelry. If he spent $67 total, what percentage did he spend on jewelry? Round your answer to the nearest percent.
are you able to simplify 3/9?
Find the three consecutive integers such that three times the largest increased by two is equal to five times the smallest increased by three times the middle i
What did Daniel Webster think