diff options
author | Braxton Hall | 2022-10-31 04:39:20 +0000 |
---|---|---|
committer | GitHub | 2022-10-31 04:39:20 +0000 |
commit | 6f19316d1f4213771cde72ca2fb17c4f8bd4b9f5 (patch) | |
tree | 6c0a9753abf7491ebad9456633fc0d4f3696f30c | |
parent | 25afac0b0b226d5b06b392047a9a914ab968c6a8 (diff) | |
parent | 0a253af87970fc92f954af1443cf5e9525e96600 (diff) |
Merge pull request #74 from braxtonhall/joel
Add Joel Jih
-rw-r--r-- | entries/joeljih/script.js | 23 | ||||
-rw-r--r-- | people.json | 11 |
2 files changed, 34 insertions, 0 deletions
diff --git a/entries/joeljih/script.js b/entries/joeljih/script.js new file mode 100644 index 0000000..7153a88 --- /dev/null +++ b/entries/joeljih/script.js @@ -0,0 +1,23 @@ +function fib(n) +{ + let a = 0, b = 1, c, i; + if( n == 0) + return a; + for(i = 2; i <= n; i++) + { + c = a + b; + a = b; + b = c; + } + return b; +} + +// Driver code + +let n = 25; + +document.write(fib(n)); + +// This code is contributed by Mayank Tyagi, From geeksforgeeks.org + + diff --git a/people.json b/people.json index 676cade..990e755 100644 --- a/people.json +++ b/people.json @@ -155,6 +155,17 @@ ] }, { + "github": "joeljih", + "name": "Joel Jih", + "title": "BSc & BEd, UBC", + "entries": [ + { + "name": "js", + "link": "./entries/joeljih/script.js" + } + ] + }, + { "github": "kevindhir", "name": "Kevin Dhir", "title": "BCom, UBC", |