1210: 【c03】小明买水果▅fixed_int

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:11 Solved:5

Description

小明去超市买了若干斤水果,你能根据水果的单价,小明买的水果数量,编一个程序计算出总金额,并打印出清单。

Input

两行

第一行商品的单价,是一个小数

第二行商品的数量,是一个整数

Output

一行,商品的单价,数量,及金额,中间用空格隔开。

单价保留两位小数,总金额去掉小数。

数量为整数。

Sample Input Copy

3.55
3

Sample Output Copy

3.55 3 10

HINT

知识点:

如果一行代码太长,例如:

cout << fixed << setprecision(2) << d << " " << n << " " << int(d * n);
你也可以改为下面这样换行。C++中格式只是为了好看,没有格式的代码也能正常执行。
cout << fixed << setprecision(2) << d 
<< " " << n << " " << int(d * n);