int n = Integer.parseInt(txtN.getValue().toString());
int f = 1;
int c = n;
while (c>=1) {
f *= c;
c--;
}
lblFat.setText(Integer.toString(f));
int n = Integer.parseInt(txtN.getValue().toString());
int f = 1;
int c = n;
while (c>=1) {
f *= c;
c--;
}
lblFat.setText(Integer.toString(f));
E qual a dificuldade/problema?
Abraço.