text: Perfect cube greater than a given number | Function to find the next perfect cube ; Driver code
code: < ? php function nextPerfectCube ( $ N ) { $ nextN = ( int ) ( floor ( pow ( $ N , ( 1 / 3 ) ) ) + 1 ) ; return $ nextN * $ nextN * $ nextN ; } $ n = 35 ; print ( nextPerfectCube ( $ n ) ) ; ? >