@@ -0,0 +1,881 @@
+package codingbat.logic2;%0A%0A/*%0A * Given 3 int values, a b c, return their sum. However, if one of the values %0A * is 13 then it does not count towards the sum and values to its right %0A * do not count. So for example, if b is 13, then both b and c do not count. %0A * %0A * luckySum(1, 2, 3) = 6%0A * luckySum(1, 2, 13) = 3%0A * luckySum(1, 13, 3) = 1%0A * %0A */%0A%0Apublic class LuckySumTest %7B%0A%0A  public static void main(String%5B%5D args) %7B%0A    LuckySumTest test = new LuckySumTest();%0A%0A    System.out.println(%22%3E%22 + test.luckySum(1, 2, 3) + %22%3C%22);%0A    System.out.println(%22%3E%22 + test.luckySum(1, 2, 13) + %22%3C%22);%0A    System.out.println(%22%3E%22 + test.luckySum(1, 13, 3) + %22%3C%22);%0A    System.out.println(%22%3E%22 + test.luckySum(13, 2, 3) + %22%3C%22);%0A  %7D%0A%0A  public int luckySum(int a, int b, int c) %7B%0A    %0A    if(a == 13) %7Breturn 0;%7D%0A    if(b == 13) %7Breturn a;%7D%0A    if(c == 13) %7Breturn a+b;%7D%0A    %0A    return a+b+c;%0A  %7D%0A%0A%7D%0A

add task luckySum