nested if  statements in C