Discount Code In C#

Discount Coding In C#


double a = Convert.ToDouble(DropDownList1.SelectedItem.ToString());


        double b = Convert.ToDouble(2);




        double div = (b / a);




        double mi = 1 - div;




        txtcommision.Text = (mi * 100).ToString();

Share this

Related Posts

Previous
Next Post »

Popular Posts