1927: Fruit class

内存限制:128 MB 时间限制:1.000 S
评测方式:文本比较 命题人:
提交:45 解决:34

题目描述

define a Fruit class,including three data filelds,name,place,price and numbers

you should define a method in the Fruit class to calculate the total price

输入

there are many lines of input,for each line,input the information of a fruit

输出

as required

样例输入 复制

apple sicuan 10 20
orange guangxi 8 54
banana zhangzhou 3 59

样例输出 复制

apple sicuan 200
orange guangxi 432
banana zhangzhou 177