Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- file = open("E:\ciag_go\go.txt","w")
- def kerw(a):
- b=a*a
- c=a-1
- d=c*c
- wy=b/d
- file.write(repr(a))
- file.write(" : ")
- file.write(repr(wy))
- file.write("\n")
- print(a,":",wy)
- x = float(input('ile iteracji? '))
- y = 2.0
- while y <= x:
- kerw(y)
- y=y+1.0
- file.close()
Advertisement
Add Comment
Please, Sign In to add comment