JAVA中怎么表示阶乘java中可以用for循环来实现阶层。代码如下:public class Demo {public static void main(String[] args) {for(int i=1i<5i++){int sum = 12023-02-22Python150
java怎么写求阶乘?亲测可用long jiecheng(int x){long int i,k=1for(i=1i<=xi++)k=k*ireturn k}int main(){long int j,k=0int ifor(2023-02-21Python140