我有一个 for 循环,我试图让它在年销售额中增加 5000,并在添加佣金的情况下打印最多 10 次计算,但我达不到要求。(这当然是在原始计算之后)为什么我的代码不足?同样在我的第一个输出之后,我无法让其余的代码运行。
System.out.println("Enter your annual sales");
String annual = input.nextLine();
int salary = 7550281;
int commission = 38_28;
if (Integer.parseInt(annual) < 92416_02) {
commission = 37_28 * 1_32 / 100;
}
int compensation = Integer.parseInt(annual) * commission / 100 + salary;
System.out.println("compensation is: "+compensation );
for(int sales = (Integer.parseInt(annual) ); sales < 10; sales +=5000);
int salary = 7550281;
int commission = 38_28;
if (Integer.parseInt(annual) < 92416_02) {
commission = 37_28 * 1_32 / 100;
}
int compensation = Integer.parseInt(annual) * commission / 100 + salary;
System.out.println("Your Annual compensation in 5000 increments are ");