循环不起作用。我试图按照if条件对行进行分组。但是,在运行代码之后,所有行都被分类为一个单独的类别“全局治理”。
# create a for loop to re-group as per the values mentioned above
for values in data['Area']:
if ((values=='corporate governance') | (values=='accounting') | (values== 'auditing') | (values=='manufactur
此c++代码在达到一年后不会停止。它应该停止在1331 (第一次说保存)。我刚开始使用递归,我不只是缺少一些基本的东西。谢谢你的进阶。我尝试过多次修改,但都没有效果。
Sample input:
- Enter inital amount to save: 1000
- Enter yearly interest rate (e.g. 0.10 for 10): .1
- Enter number of years of compounded interest: 3
Output:
iAmount: 1100
Years: 3
iAmount: 1210
Years: 2
i