I'm trying to calculate a combination using this formula: 
I'm running into issues with the output. My program simply outputs 0 when I run this code:
public class Lottery {
public static long numPossibleTickets(int k, int n, int m) {
int i;
int j;
long numerator = n;
long denominator = k;
long total = 0;
for (i = n - 1; i > (k + 1); i--) {
numerator = numerator * i;
}
i = 0;
for (j = k; j > 0; j--) {
denominator = denominator * (denominator - i);
i++;
}
total = m * (numerator / denominator);
return total;
}
public static void main(String[] args) {
Scanner scnr = new Scanner(System.in);
int k = 5;
int n = 69;
int m = 26;
System.out.println(numPossibleTickets(k, n, m));
}
}
However, the output should be 292,201,338. Any help with this would be much appreciated. Thanks so much!