搜索资源列表
Sjx.java
- 编写一个三角形类,能根据3个实数构造三角形对象,如果三个实数不满足三角形的条件,则自动构造以最小值为边的等边三角形。输入任意三个数,求构造的三角形面积。-Preparation of a triangle class, according to three real objects constructed triangle, if the triangle does not meet the three conditions of a real number, is automatically
a
- 1) 利用求n!的方法计算 2!+4!+5!的值。分别利用递归和非递归方法实现求n!。 2) 编写根据三条边求三角形面积的方法。利用该方法求以下两个三角形面积。 (1)三条边分别为:3,4,5 (2)三条边分别为:5.3, 6.2, 8 3)从命令行参数获取两个整数,找出两个整数之间的所有素数,每行输出3个数。-1) use the method seek n! 2!+4!+5! Value. Are recursive and non recursive method seek
Lottery-draw
- 本程序先找到抽奖名单,然后利用名单序号滚动,随即抽出一个数显示为获奖人,含1个一等奖,三个二等奖,5个三等奖-The program to find the first prize draw, and then use the list of serial rolling, and then pull out a number for the winners, including a first prize, three second prize, five third prize