kburnik

Logo - Zadatak Piramida (Zup 2013)

Feb 26th, 2013
35
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. to piramida :n :a :b :d
  2.  
  3. rt 90
  4. make "s :n*:a
  5. make "omjer :b/:a
  6.  
  7. while [:a > 0] [
  8.  
  9. pu bk :s/2 pd
  10. repeat :n [
  11. repeat 2 [fd :a lt 90 fd :b lt 90]
  12. pu fd :a pd
  13. ]
  14. pu bk :s/2 lt 90 fd :b rt 90 pd
  15.  
  16. make "a :a - :d/:n
  17. make "b :a*:omjer
  18. make "s :n*:a
  19. ]
  20.  
  21. lt 90
  22.  
  23. 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.

×