p1
Name Email * Message *
-->
Skip to main contentPROGRAM:
a=int(input("Enter your salary:"))
s=str(input("Enter your sex (Male/Female):"))
print("************************************************************************")
if (s=="Male"):
print("Your special salary due to diwali festival:"+"Rs.", a+(a*(5/100)))
if (s=="Female"):
print("Your special salary due to diwali festival:"+"Rs.", a+(a*(10/100)))
if (s=="Male" and a<10000):
print("And also based on your salary:"+"Rs.", a+(a*(7/100)))
if (s=="Female" and a<10000):
print("And also based on your salary:"+"Rs.", a+(a*(12/100)))
print("-------------------By infinitynotes00(∞).blogspot.com-----------------------------")
OUTPUT:
Enter your salary: 50000 Enter your sex (Male/Female): Female
************************************************************************ Your special salary due to diwali festival:Rs. 55000.0 -------------------By infinitynotes00(∞).blogspot.com-----------------------------
Comments
Post a Comment