Function to print the largest and smallest N - digit Octal number
function printLargestSmallest ( N ) { document . write ( " " + findLargest ( N ) + " " ) ; document . write ( " " + findSmallest ( N ) ) ; }