package com.test.zx;
import java.util.Scanner;
public class CompareTwoNumbers1
{
double num1,num2;
Scanner scanner;
public CompareTwoNumbers1()
{
System.out.println("请输入两个数字:");
scanner = new Scanner(System.in);
num1=input.nextDouble();
num2=Input.nextDouble();
System.out.println("较大的数是:"+ num1>num2?num1:num2);
}
public static void main(String args[])
{
CompareTwoNumbers1 ct = new CompareTwoNumbers1();
System.exit(0);
}
}
qq_我亦久飘零_0
相关分类