Guest User

Untitled

a guest
Oct 21st, 2019
84
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def zadanie (n,x):
  2.     skladnik_sumy=1;
  3.     suma=0
  4.    
  5.     for k in range(0,n+1):
  6.         suma = suma + skladnik_sumy
  7.         skladnik_sumy=(skladnik_sumy*x)/(k+1)
  8.     return suma
  9.    
  10. n=int(input("Podaj n= "))
  11. x=int(input("Podaj x= "))
  12. print(zadanie(n,x))
RAW Paste Data