write a python program to enter employee salary and experience if salary greater than 30000 and experience greater than 6 years they will get 20% bonus otherwise they will get 10% bonus and also find out bonus amount
Answers
Answered by
1
salary, experience = [float(n) for n in input("enter salary and experience: ").split()]
if salary > 30000 and experience > 6:
print(f"bonus amount: {salary * .2}")
else:
print(f"bonus amount: {salary * .1}")
Similar questions