SHARE
TWEET

Untitled

a guest Oct 21st, 2019 73 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
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top