摘要:
//写一个可求n的阶乘的类package compute;//打包 public class Computer {//创建一个类 int sum=1;//定义一个整型变量 public int getJC(int n){ for(int a=1;a<=n;a++){//for循环语句 sum =sum*a; } return sum;//返回 } package Keyi;//打包 import 阅读全文
posted @ 2019-09-18 16:06
randroy
阅读(217)
评论(0)
推荐(0)

浙公网安备 33010602011771号