Are you saying nothing is printing for you?
This is what prints for me:
10th fiboncci number:89
reverse of 10567:10*5=100000 |
https://oeis.org/A000045
0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377, 610, 987, ...
Your sequence is a bit off. Your code is saying that the 0th fibonacci number is 1, and the 1st fibonacci number is also 1, meaning that the 2nd fibonacci number is 2, which is not the standard sequence.
The standard sequence either has the 0th element being 0, and 1st element being 1, or the 1st and 2nd element being 1, depending on notation.
Besides that, I don't see why you have "reverse of 10567" written, because finding the reverse of an integer isn't in the question you gave.
Your mult function fails for mult(1, -1), mult(-3, 2) and similar, but I'm not sure if that's beyond the scope of what you're supposed to do.