If the value received is an Armstrong number
else if ( ans == F ( ans ) ) { document . write ( N ) ; document . write ( " " + " " ) ; document . write ( ans ) ; } else { document . write ( N ) ; document . write ( " " + " " ) ; document . write ( ans ) ; } } }