Function to calculate the factorial of n
| 14 | |
| 15 | // Function to calculate the factorial of n |
| 16 | unsigned long long factorial(int n) { |
| 17 | CTRACK; // Start tracking this function |
| 18 | if (n <= 1) return 1; |
| 19 | return n * factorial(n - 1); |
| 20 | } |
| 21 | |
| 22 | // Function to calculate the nth Fibonacci number |
| 23 | int fibonacci(int n) { |