{"id":12756,"date":"2021-09-30T17:30:33","date_gmt":"2021-09-30T12:00:33","guid":{"rendered":"https:\/\/python-programs.com\/?p=12756"},"modified":"2021-11-22T18:33:32","modified_gmt":"2021-11-22T13:03:32","slug":"python-program-to-find-number-of-digits-in-nth-fibonacci-number","status":"publish","type":"post","link":"https:\/\/python-programs.com\/python-program-to-find-number-of-digits-in-nth-fibonacci-number\/","title":{"rendered":"Python Program to Find Number of Digits in Nth Fibonacci Number"},"content":{"rendered":"

Don’t stop learning now. Get hold of all the important Java fundamentals with the Simple java program example<\/a> guide and practice well.<\/p>\n

Given a number N the task is to calculate the number of digits in the Nth Fibonacci Number.<\/p>\n

Fibonacci Numbers:<\/strong><\/p>\n

Starting with 0 and 1, the next two numbers are simply the sum of the previous two numbers. The third number in this sequence, for example, is 0+1=1, hence the third number is 1. Similarly, the fourth number in this series will be 1+1=2, resulting in the fourth number being 2.
\nThe Fibonacci Number Series is as follows: 0 1 1 2 3 5 8 13 21 and so on.<\/p>\n

Examples:<\/strong><\/p>\n

Example1:<\/strong><\/p>\n

Input:<\/strong><\/p>\n

Given N=14<\/pre>\n

Output:<\/strong><\/p>\n

The Number of digits present in 14 th Fibonacci number is [ 3 ]<\/pre>\n

Example2:<\/strong><\/p>\n

Input:<\/strong><\/p>\n

Given N=23<\/pre>\n

Output:<\/strong><\/p>\n

The 23 th Fibonacci number is [ 17711 ]\r\nThe Number of digits present in 23 th Fibonacci number is [ 5 ]<\/pre>\n

Python Program to Find Number of Digits in Nth Fibonacci Number<\/h2>\n

Below are the ways to find the number of digits in the Nth Fibonacci Number.<\/p>\n