Python - Write a program to calculate gross salary. Email ThisBlogThis!Share to TwitterShare to Facebook Reactions: Labs 1 Comment
b=int(raw_input("basic salary is"))
ReplyDeleteif (b<15000 and b>10000):
da=0.7*b
hra=0.1*b
r=da+hra+b
elif b>=15000:
da=0.98*b
hra=500
r=da+hra+b
elif b<10000:
r=b
print "gross salary is %d"%r
basic salary is9999
gross salary is 9999