SOLUTION CODE
basic_salary = float(input("\nPlease Entered Basic Salary (In Rs.)"))
if basic_salary < 30000:
hra = basic_salary * (10 / 100)
da = basic_salary * 90 / 100;
else:
hra = 500;
da = basic_salary * 98 / 100;
gross_salary = basic_salary + hra + da;
print("\nBasic Salary = Rs "+str(basic_salary))
print("HRA = Rs "+ str(hra));
print("DA = Rs "+str(da))
print("Gross salary = Rs "+str(gross_salary))
Comments
Leave a comment