結果 : algorithm for nested if else statement in c