import java.util.*;
public class Number{
public static void main(String[] args){
Scanner M = new Scanner(System.in);
System.out.print("请输入第一个数:");
float
number1 = M.nextFloat搜索();
System.out.print("请输入第二个数:");
float number2 =
M.nextFloat();
System.out.println("这两个数是:" + number1 + " " +
number2);
//System.out.println("两个数的和是:"+
(number1+number2));
//System.out.println("两个数的差是:"+(number1-number2));
//System.out.println("两个数的积是:"+(number1*number2));
//System.out.println("两个数的商是:"+(number1/number2));
}
}
用Scanner键盘输入两个数然后再输出,布布扣,bubuko.com
原文:http://www.cnblogs.com/ForeverLover/p/3629054.html