import java.util.Scanner; //求两个数的最大公约数,最小共倍数. public class CommonMaxDivisor { public static void main(String[] args){ Scanner scanner=new Scanner(System.in); int m=scanner.nextInt(); int n=scanner.nextInt(); scanner.close(); CommonMaxDivisor cmd=new
using System; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { Console.WriteLine("请输入一个数:"); int num1 = int.Parse(Console.ReadLine()); Console.WriteLine("请输入另一个数:"); int num2 = int.Parse(Console.ReadLin
import java.util.*; public class S{ public static void main(String[] args){ Scanner input = new Scanner(System.in); int num1,num2,remainder,m,n; System.out.print("请输入一个正整数:"); num1 = input.nextInt(); System.out.print("请再输入一个正整数:"); num