p=int(input("p =")) pas=10**-p h=1 while h>0: c=c=-1/(1+h) print("h =",h,"c =",c) h=round(h-pas,p)