Using a for loop,write a program that prints out the decimal equivalents of 1/2,1/3,1/4....1/10 in python
Answers
Answered by
3
Answer:
for i in range(1, 11):
print "1/" + str(i) + " is " + str(1.0/i)
Answered by
0
Answer:
i=1
j=1
n=10
for j in range(2,n+1,1):
print(i,"/",j,"=",i/j)
Explanation:
Similar questions