[Solved] Recursive implementation of Fibonacci function
I pasted your code on https://tio.run/#c-gcc, and here’s the result: main prototype .code.tio.c:3:7: warning: ‘main’ takes only zero or two arguments [-Wmain] int main(int fib) { ^~~~ the main function prototype is int main(void) or int main(int argc, char *argv[]) Since you want user to input a number, you can choose the first form. count … Read more