Numeric Operation

Post Reply
admin
Site Admin
Posts: 119
Joined: Fri May 10, 2024 2:46 pm
Location:

Numeric Operation

Post by admin »

Code: Select all

x = 45
y = 35457554887711.56
z = -3255522j

print(type(x))
print(type(y))
print(type(z))
jollyks
Posts: 4
Joined: Thu May 30, 2024 6:31 am
Location: Chandigarh
Region name: Others

Numeric Operation - Gst Use case

Post by jollyks »

Code: Select all

#Python program to get selling price and GST rate and print invoice along with both CGST and SGST values
sp=float(input("Enter selling price:"))
gst=float(input("Enter GST rate%:"))
tax=(gst/100)*sp
print("-------------Invoice-------------")
print("Item Name-------------Price")
print("Product X-------------",sp,"Rs")
print("GST%------------------",gst,"%")
print("Total GST tax---------",tax,"Rs")
print("CGST%-----------------",gst/2,"%")
print("CGST Tax--------------",tax/2,"Rs")
print("SGST%-----------------",gst/2,"%")
print("SGST Tax--------------",tax/2,"Rs")
print("Total Amount----------",sp+tax,"Rs")

Post Reply