Smallest N digit number which is a perfect fourth power | Java implementation of the approach ; Function to return the smallest n - digit number which is a perfect fourth power ; Driver code
class GFG { static int cal ( int n ) { double res = Math . pow ( Math . ceil ( ( Math . pow ( Math . pow ( 10 , ( n - 1 ) ) , 1 / 4 ) ) ) , 4 ) ; return ( int ) res ; } public static void main ( String [ ] args ) { int n = 1 ; System . out . println ( cal ( n ) ) ; } }