From e6e0c1582ae40cdf2c2546d0a57257d953629df4 Mon Sep 17 00:00:00 2001 From: shivam tiwari <93382467+Shivamtiwri@users.noreply.github.com> Date: Mon, 31 Oct 2022 22:49:08 +0530 Subject: [PATCH] find_net_amount.py --- Python/find_net_amount.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Python/find_net_amount.py diff --git a/Python/find_net_amount.py b/Python/find_net_amount.py new file mode 100644 index 0000000..ff73be5 --- /dev/null +++ b/Python/find_net_amount.py @@ -0,0 +1,18 @@ +print("="*50) +print("") +q=int(input("How Many Quantity Of Apple : ")) +print("Apple Quantity Is : ",q) +p=200 +print("Price Of Apple : ",p,"/kg") +na=q*p +print("Your Net Amount Is : ",na,"Rs")#4000 +pr=na*10/100#400 +print("="*50) +if na>1000: + na=na-pr + print("Your Discount Is : ",pr,"Rs") + print("="*50) + print("Total Amount Of Apple : ",na,"Rs") +else: + print("Total Amount Of Apple : ",na,"Rs") +print("="*50)