【发布时间】:2022-11-11 01:17:05
【问题描述】:
if (Weight <6)
{
Price = 5;
System.out.println("The price of cleaning will be" + Price);
}
else if(Weight > 5 < 10)
{
Price = 8;
System.out.println("The price of cleaning will be" + Price);
}
else if(Weight >=10)
{
Price = 12;
System.out.println("The price of cleaning will be" + Price);
}
否则如果(重量> 5 < 10)。我收到一个布尔错误我该如何修复那部分?
我希望它知道其中的区别。拜托,我在这方面需要帮助,我正在做的这项工作将在 3 小时内完成
【问题讨论】:
标签: java