結果 : algorithm for if else statement with example