Smallest N digit number which is a perfect fourth power | C ++ implementation of the approach ; Function to return the smallest n - digit number which is a perfect fourth power ; Driver code
#include <bits/stdc++.h> NEW_LINE using namespace std ; int cal ( int n ) { double res = pow ( ceil ( ( pow ( pow ( 10 , ( n - 1 ) ) , 1 / 4 ) ) ) , 4 ) ; return ( int ) res ; } int main ( ) { int n = 1 ; cout << ( cal ( n ) ) ; }