根据常识,在定义以下变量时,数据类型选择错误的是()

A.int apple_price; //苹果的单价,单位为元 B.int apple; //表示苹果的数量 C.double apple_weight; //苹果的重量,单位为kg D.double apple_total; //苹果的总价,单位为元

时间:2024-03-10 15:39:16

相似题目