Here is one more "Challenge"! Today i had a meeting with a friend, and mostly we are a little bit crazy.. He bets, that it is not possible to create a Fibonacci Sequence without using loops.
No static output like:
return "1, 2, 3, 5, 8, 13, ..";
GOAL / Requirements
- Use only 1 int var
- Return the first 5 (or more) numbers
- Name your function "fibonacci"
- Call no other functions except "fibonacci"
- No loops are allowed
- Have fun ;)
Scoring
Popularity contest (Most upvotes minus downvotes)
End Date
June 17. 2014
No special language required