Skip to content

Instantly share code, notes, and snippets.

@ImOmkar
Created August 16, 2018 18:50
Show Gist options
  • Save ImOmkar/9dc62f772ea88a7064392ead2edfcb64 to your computer and use it in GitHub Desktop.
Save ImOmkar/9dc62f772ea88a7064392ead2edfcb64 to your computer and use it in GitHub Desktop.
Program to calculate Discount on MRP in Python
u=int(input("Enter MRP:\n"))
o=int(input("Enter offer no:\n"))
for i in range(1):
if(o==1):
print("MRP Price after applying Discount: ",u*0.75)
elif(o==2):
print("MRP price after applying Discount: ",u*0.6)
elif(o==3):
print("MRP price after applying Discount: ",u*0.4)
elif(o==4):
print("MRP price after applying Discount: ",u*0.25)
else:
print("***GET LOST***")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment