• + 2 comments

    in the statement int result = total - 2*luckToFlip; why have you put 2*luckToFlip insted of just luckToFlip?