Python program to calculate gst

Write a program in python to calculate GST?

Write a program in python to calculate GST?

------------------------------------------------

product=input("Enter Product Name : ")

sp_cost=float(input("Enter selling price of product : "))

gst_rate=float(input("Enter 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-

Enter Product Name : laptop

Enter selling price of product : 55000

Enter GST rate % : 18

CGST (@ 9.0 %) : 4950.0

SGST(@ 9.0 %) : 4950.0

Amount payable :  64900.0

Post a Comment

0 Comments