Iterated Logarithm log * ( n ) | Recursive C # program to find value of Iterated Logarithm ; Driver code
using System ; public class GFG { static int _log ( double x , double baset ) { return ( int ) ( Math . Log ( x ) / Math . Log ( baset ) ) ; } static double recursiveLogStar ( double n , double b ) { if ( n > 1.0 ) return 1.0 + recursiveLogStar ( _log ( n , b ) , b ) ; else return 0 ; } static public void Main ( ) { int n = 100 , baset = 5 ; Console . WriteLine ( " Log * ( " + n + " ) ▁ = ▁ " + recursiveLogStar ( n , baset ) ) ; } }