Q. Write a program to calculate net salary after inputting basic salary, hra%, da% and tax%

net = basic + hra + da - tax


Answer = 


basic = float(input("Enter basic salary :-"))
hra = float(input("Enter hra% :-"))
da  = float(input("Enter da%  :-"))
tax = float(input("Enter tax% :-"))

print("Net price = ", basic + hra + da - tax )


Output :-

Enter basic salary :-95000
Enter hra% :-1
Enter da%  :-3
Enter tax% :-18
Net price =  94986.0

>>>

1 Comments

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post