Home > other > To solve the pycharm Process finished with exit code 0
To solve the pycharm Process finished with exit code 0
Time:10-05
# bonus calculation Def countBonus () : The way=int (input (" please enter the earnings ")) If the way & lt;=10: Bouns=the way * 0.1 Elif way & gt; 10 and the way & lt;=20: Bonus=10 + (the way - 10) * 0.075 * 0.1 Elif way & gt; 20 and the way & lt;=40: Bonus + 10 * 10 * 0.1=0.075 + (the way - 20) * 0.05 Elif way & gt; 40 and the way & lt;=60: Bonus + 10=10 * 0.1 * 0.075 * 0.05 + + 20 (the way - 40) * 0.03 Elif way & gt; 60 and the way & lt;=100: Bonus + 10=10 * 0.1 * 0.075 * 0.05 * 0.03 + + 20 + 20 (the way - 60) * 0.015 Elif way & gt; 100: Bonus + 10=10 * 0.1 * 0.075 * 0.05 * 0.03 + 20 + 20 + 40 + (the way - 100) * 0.01 * 0.015 Print (" you "is the total revenue, the way of" ten thousand yuan ") Print (" your bonus is a "bonus," ten thousand yuan ")
CountBonus ()
Then the result directly 弾 a The Process finished with exit code 0 How to solve?
CodePudding user response:
CountBonus () to remove this statement before four Spaces,