摘要:
Calling methods from within other methods------------------------程序如下:-----------------------------/** File: Combinations.java* -----------------------* This program computes the mathematical combinations function* C(n, k), which is the number of ways of selecting k objects* from a set of n distinct 阅读全文
posted @ 2011-04-02 15:46
职场人的思考
阅读(1256)
评论(1)
推荐(0)
摘要:
package chapter5;import java.util.Scanner;public class Gcd {/** * 计算2个数的最大公约数 */public static void main(String[] args) { int x; int y; int result; System.out.println("please in put the x:"); Scanner input=new Scanner(System.in); x=input.nextInt(); System.out.println("please in put the 阅读全文
posted @ 2011-04-02 15:33
职场人的思考
阅读(828)
评论(0)
推荐(0)

浙公网安备 33010602011771号