結果 : code using if else statement