RKS: Computer Science
Thursday, 16 December 2021
To calculate tax - GST / Income Tax.
Program code to calculate the GST
Example 1
Original_price =
100
Net_price =
124.7
GST_amount = Net_price - Original_price
GST_percent =
((
GST_amount *
100
)
/ Original_price
)
print
(
"GST = "
,end=
''
)
print
(
round
(
GST_percent
)
,end=
''
)
print
(
"%"
)
Output:-
GST = 25%
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment