Fibonacci sequence program that only prints the n'th digit in the sequence
Re: Fibonacci sequence program that only prints the n'th digit in the sequence
Quote:
Originally Posted by
erichfx
I am just unsure of how to reference to that nth digit that is inputted by the user, and ONLY print that nth digit and not the entire sequence.
Take that println( ... ) statement out of the loop (so it won't print each and every value) and stick it back in after the loop ...
kind regards,
Jos