This is My code But Output is zero
private decimal gstcal()
{
decimal tax,price,cal, tcal;
tax = Convert.ToDecimal(txtFtax.Text); // Tax=5
price = Convert.ToDecimal(txtFamt.Text); // Price=20
cal = (tax / 100);
tcal = price * cal;
return tcal;
}

Amit GuptaRank #190 · 12.8K reputationPosted Dec 11, 2019, 7:33 PM EST
Amit GuptaRank #190 · 12.8K reputationPosted Dec 11, 2019, 7:25 PM EST
Piyush PansuriyaRank #454 · 5.5K reputationPosted Dec 11, 2019, 7:32 PM EST
Mageshwaran RRank #411 · 6.1K reputationPosted Dec 11, 2019, 10:55 PM EST
Ashutosh GuptaRank #805 · 2.9K reputationPosted Dec 12, 2019, 12:02 AM EST