Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- x = float(0)
- y = float(1)
- print("Value of N?\n")
- n = input(float())
- print("\n\n")
- while(x < n):
- x = x + 1
- y = y + (2*x)
- y = y/n
- print"y = ",y
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement