fork download
  1. print "This program finds the first n Fibonacci numbers."
  2. n = input("Input n : ")
  3.  
  4. for i in range(n) :
  5. a = 0
  6. b = 1
  7. for j in range(i):
  8. temp = a
  9. a = b
  10. b = temp + b
  11. print a
Not running #stdin #stdout 0s 0KB
stdin
Standard input is empty
stdout
Standard output is empty