摘要:
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 阅读全文
摘要:
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 阅读全文