#1503. 面积与铺设费用
面积与铺设费用
描述
请定义 function rectangle_area(length, width),返回长方形面积。主程序读取 length、width 和每平方单位费用 unit_cost,使用 function 的返回值计算总费用。
输入格式
一行三个正整数 length、width、unit_cost。
输出格式
在一行输出面积和总费用。
样例
3 4 5
12 60
1 1 1
1 1
数据范围
- 1 ≤ length, width, unit_cost ≤ 10000