fork download
  1. #!/usr/local/bin/python2.7
  2.  
  3. print "Decimal equivalents of 1/2, 1/3, 1/4, ..., 1/10:\n";
  4.  
  5. for i in range(2,11):
  6. print 1.0/i
Success #stdin #stdout 0.01s 7896KB
stdin
Standard input is empty
stdout
Decimal equivalents of 1/2, 1/3, 1/4, ..., 1/10:

0.5
0.333333333333
0.25
0.2
0.166666666667
0.142857142857
0.125
0.111111111111
0.1