nested if program