Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import math
- x=float(input("Give x:"))
- n=term=numv=1000
- sum=1.0
- while n<=1000:
- term*=x/n
- sum +=term
- n+=1000
- if term <0.0001:
- break
- print ("No Values=%d and Sum=%f" %(n,sum))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement