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

Giving brainlist to whoever answers
5) Explain the steps and show your work on how you would simplify the expression 8(1/4x-3)+5(2y+4)+10​
Help I will mark brainliest if correct! Pls I really need it!!!!! Its iready
plzzzzz help just tell me a b c d for both of them ill give anyone brainliest too
write relationship between environment and development​
assume that a consumer has a given budget or income of $12 and that she can buy only two goods, apples or bananas. The price of an apple is $1.50 and the price
Cuanto es la raiz cuadrada 7 x 4 cuando usas la ecuacion de 168?
Internet service providers (ISP) need to resolve customer problems as quickly as possible. The probability for a customer call regarding Internet service interr
PLSSS HELPPPP PLS need this to pass !!
Use the synthetic division to find the real zeros of f(x)=2x3 +7x2+2x-3