Exemplo n.º 1
0
 public static bool IsLuckyPiter(this Ticket t)
 {
     return(SumOddPositions(t.Number) == SumEvenPositions(t.Number));
 }
Exemplo n.º 2
0
 public static bool IsLuckyMoskow(this Ticket ticket)
 {
     return(SumFirstHalf(ticket.Number) == SumSecondHalf(ticket.Number));
 }