kburnik

Logo - Zadatak Zbroji

Oct 30th, 2012
41
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. to zbroji :l
  2. make "l1 []
  3.  
  4. make "f [ 1 1 ]
  5. for[ i 3 50 1 ][
  6. make "f lput ( ( item ( :i - 1 ) :f ) + ( item ( :i - 2 ) :f ) ) :f
  7. ]
  8.  
  9. foreach :l[
  10. make "s 0
  11. for[ i [ ( first ? ) ] [ ( last ? ) ] 1 ][
  12. make "s :s + ( item :i :f )
  13. ]
  14.  
  15. make "l1 lput :s :l1
  16. ]
  17.  
  18. op :l1
  19. end
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×