Python program to calculate salary hike
Following program shows you how to calculate salary hike.
In this program we get salary per month and hike from user and calculate new salary with hike using following formula
Salary hike = oldSalaryPerMonth + (oldSalaryPerMonth X hike/100)
oldSalaryPerMonth = int(input("Enter your old salary per month:"))
hike = int(input("Enter your hike percentage:"))
presentSalaryPerMonth = oldSalaryPerMonth + (oldSalaryPerMonth * hike / 100)
print("After hike your present salary per month is: ", presentSalaryPerMonth)
Output:
Enter your old salary per month: 100000
Enter your hike percentage: 15
After hike your present salary per month is: 115000.0