Dsa
Math
Medium
Fibonacci Digit Count
Given a positive integer k, write a program that calculates the k-th Fibonacci number and then counts the number of digits in that Fibonacci number.
Input Format:
A single integer k (1 <= k <= 1000).
Output Format:
An integer representing the number of digits in the k-th Fibonacci number.
Example:
Input:
10
Output:
2
Key concepts
fibonaccidigit countmath
Practise this out loud — free
Start a mock interview on THIS exact question — a voice AI interviewer opens with it, pushes back like a real onsite, then hands you an instant scorecard.
🎙 Practise this question now