any nice free visual C compiler like Miracle C Compiler?
Frankly, for Windows, Visual C++ is the best, but if you found that has a learning curve that you dislike, then any other IDE would have a learning curve that you do not want to overcome. That said, Code::Blocks would be your next best bet.any nice free visual C compiler like Miracle C Compiler?
thanks Code::Blocks is excellent
If n is very large, code will run damm slow.
This is not efficient code.
"No-one else has reported this problem, you're either crazy or a liar" - Dogbert Technical Support
"Have you tried turning it off and on again?" - The IT Crowd
To work nothing. It is fine
EDIT: Just for practice, try writing the code using fewer lines. Then try to write the algorithm using more variables instead of recursion