Advertisement
kburnik

Logo - Zadatak Piramida (Zup 2013)

Feb 26th, 2013
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement