Write a python program to print out the decimal equivalents of 1/2, 1/3, 1/4, . . . ,1/10 using for loop.
3)a) Write a python program to print out the decimal equivalents of 1/2, 1/3, 1/4,
. . . ,1/10 using for loop.
a=int(input("Enter the last value of the series:"))
for key in range(1,a+1):
print(1/key)
Comments
Post a Comment