Created
August 30, 2016 10:58
-
-
Save maateen/db81296c9a10dd245972e4e83f3b81c7 to your computer and use it in GitHub Desktop.
This will take a float number as input and show the total number with tax. (Bangladesh)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/usr/bin/python3 | |
print("Press 'Ctrl+C' to exit this tool.") | |
try: | |
while True: | |
print("\nPlease input price in BDT: ") | |
a = float(input()) | |
b=a+((a*5)/100) | |
c=b+((b*15)/100) | |
d=c+((a*1)/100) | |
print("Total price with tax:", round(d, 2), "BDT") | |
except KeyboardInterrupt: | |
print("This tool has been exited successfully.") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment