Program to print non square numbers | Returns n - th non - square number . ; loop to print non squares below n ; Driver Code
< ? php function nonsquare ( $ n ) { return $ n + ( int ) ( 0.5 + sqrt ( $ n ) ) ; } function printNonSquare ( $ n ) { for ( $ i = 1 ; $ i <= $ n ; $ i ++ ) printf ( nonsquare ( $ i ) . " ▁ " ) ; } $ n = 10 ; printNonSquare ( $ n ) ; ? >