小明买水果
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.
【问题描述】
小明去超市买了若干斤水果,你能根据水果的单价,小明买的水果数量,编一个程序计算出总金额,并打印出清单。
【输入格式】
输入两个值:
第一个为商品的单价,是一个小数。
第二个为商品的数量,是一个整数。
用空格隔开。
【输出格式】
一行,商品的单价,数量,及金额,中间用空格隔开。
单价保留两位小数,总金额去掉小数,数量为整数。
【样例数据】
3.55 3
3.55 3 10
少科院七年级第2次课——小数运算
- Status
- Done
- Problem
- 15
- Open Since
- 2025-12-14 0:00
- Deadline
- 2025-12-27 23:59
- Extension
- 24 hour(s)