猿问

求大神看看,哪里出错了

package day02; import java.util.Scanner; public class He { public static void main(String[] args) { double amount,price,money; Scanner sc=new Scanner(System.in); System.out.println("请输入商品单价: "); price=sc.nextDouble(); System.out.println("请输入购买数量: "); amount=sc.nextDouble(); System.out.println("请输入收款金额: "); money=sc.nextDouble(); System.out.println(price+','+amount+','+money); } }
慕神1294890
浏览 1330回答 3
3回答
随时随地看视频慕课网APP

相关分类

Java
我要回答