kburnik

Logo - Pascal :r :s - binomni koeficijent

Oct 13th, 2012
46
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ;; http://www.wolframalpha.com/input/?i=Plot%5B%7B2x%3B+x%5E2%7D%2C%7Bx%2C0%2C100%7D%5D
  2.  
  3. to pascal :r :s
  4.  
  5. make "b 1
  6. make "n 1
  7.  
  8. make "r :r - 1
  9. make "s :s - 1
  10.  
  11. for [i (:r-:s+1) :r 1] [
  12. make "b :b * :i
  13. ]
  14.  
  15. for [i 1 :s 1] [
  16. make "n :n * :i
  17. ]
  18.  
  19. op :b/:n
  20. 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.

×