test.qlw 636 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. fast_fibonacci(i: Integer): Integer do
  2. a: Integer
  3. b: Integer
  4. temp: Integer
  5. count: Integer
  6. count := i
  7. a := 0 // asdfgadf
  8. b := 1
  9. while count != 0 do
  10. temp := a
  11. a := a + b
  12. b := temp
  13. count := count - 1
  14. end
  15. return a
  16. end
  17. extern printint(x: Integer)
  18. class Aalala
  19. end
  20. /*
  21. bignumbers do
  22. a: Int128
  23. b: Int128
  24. c: Int64
  25. b := a + c as Int128
  26. //c := b as Int64
  27. end
  28. */
  29. main: Integer do
  30. count: Integer
  31. count := 0
  32. while count != 20 do
  33. printint(fast_fibonacci(count))
  34. count := count + 1
  35. end
  36. return 0
  37. //do_shit
  38. end