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);
}
}
添加回答
举报
0/150
提交
取消