Question: how to calculate percentage in c#?
Answer: public void CalculateTotal()
{
int th1, th2, practical, oral, termwork, total;
double percentage;
th1 = Convert.ToInt32(txtTheory1.Text);
th2 = Convert.ToInt32(txtTheory2.Text);
practical = Convert.ToInt32(txtPractical.Text);
oral = Convert.ToInt32(txtOral.Text);