printing out the result for if statement

printing out the result for if statement