Advertisement
Guest User

Untitled

a guest
Oct 2nd, 2014
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. func Fibs(x:int) -> int :=
  2. x = 0 -> 0;
  3. | x = 1 -> 1;
  4. | otherwise -> Fibs(x-1) + Fibs(x-2);
  5.  
  6. func Pow(x:int, r:int) -> int :=
  7. r = 0 -> 1;
  8. | otherwise -> x*Pow(x, r-1);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement