text: If we find a pair , then print the pair and return . The first condition makes sure that two same values are not added
code: if ( ( val1 != val2 ) && ( val1 + val2 ) == target ) { printf ( " Pair Found : % d + % d = % d " , val1 , val2 , target ) ; return true ; }