public void facbutton(eventhandler) { facnum = (Int.parseInt(string.valueOf(answerBox.getText()))); if (facNum < 1) { MessageBox mb = new MessageBox (fr, "Facorial Error", "Cannot find the factorial of numbers less than 1."); mb.show(); } else { for (int i=(FacNum -1); i > 1; --i) FacNum *= i; answerBox.setText(string.valueOf(FacNum()));
facnum
facNum
FacNum
FacNum()
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)