求助!!键盘上输入两个double类型的浮点数,求这两个数的乘积
求助求助!!键盘上输入两个double类型的浮点数,求这两个数的乘积!
该咋做呀!
import java.util.Scanner; public class Multi { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); double val1 = scanner.nextDouble(); double val2 = scanner.nextDouble(); System.out.println(val1 * val2); } }