Programming Examples
Python program to calculate GST Goods and Service Tax
Program to calculate GST
Solution
item=input("Enter item name :")
sp_cost=float(input("How much is selling price of item"))
gst_rate=float(input("What is GST rate %"))
cgst=sp_cost*((gst_rate/2)/100)
sgst=cgst
amt=sp_cost+cgst*sgst
print("CGST (@",(gst_rate/2),"%) :",(cgst))
print("SGST(@",(gst_rate/2),"%) :",(sgst))
print("Amount payable: ",(amt))
Output/ Explanation:
Enter item name :mobile
How much is selling price of item12600
What is GST rate %18
CGST (@ 9.0 %) : 1134.0
SGST(@ 9.0 %) : 1134.0
Amount payable:Â 1298556.0