forked from JavaTX/JavaCompilerCore
bb26112a9b
modified: Fac.jav modified: Faculty.jav modified: OL.jav modified: While.jav modified: ../../javFiles/AddLong.jav
16 lines
216 B
Java
16 lines
216 B
Java
import java.lang.Integer;
|
|
import java.lang.Long;
|
|
import java.lang.Double;
|
|
|
|
public class Fac {
|
|
|
|
java.lang.Long getFac(n){
|
|
var res = 1;
|
|
var i = 1;
|
|
while(i<=n) {
|
|
res = res * i;
|
|
i++;
|
|
}
|
|
return res;
|
|
}
|
|
} |