Fibonacci Sequence

Learn to generate the Fibonacci sequence.

Challenge

Write a program to find the index of the first term in the Fibonacci sequence to contain 10 digits?

For this problem, you will have to write two functions:

1. countdigits ( )

This function takes an integer and returns the number of digits in that integer.

2. printNumberandIndex ( )

This function creates a Fibonacci sequence and checks ...