题目:有1、2、3、4个数字,能组成多少个互不相同且无重复数字的三位数?都是多少?程序分析:可填在百位、十位、个位的数字都是1、2、3、4。这里要用3个for循环public class test {
public static void main(String[] args) {
int sum=0;
for (int bite = 1; bite...
题目:输入两个正整数m和n,求其最大公约数和最小公倍数。程序分析:利用辗除法import java.util.Scanner;
public class t {
public static void main(String[] args) {
int a,b,c;
Scanner sc=new Scanner(System.in);
...