Your code has (at least) two problems:
- It is incorrect.
- it it clumsy.
You may simple do something like:
RadioButton [] rbGood =
{ RadioButton2, RadioButton6, RadioButton10, RadioButton14, RadioButton18,
RadioButton22, RadioButton26, RadioButton30, RadioButton34, RadioButton38 };
int total = 0;
for (int k=0; k<9; k++)
{
if (rbGood[k].Checked) total++;
}
Label1.Visible = true;
Label1.Text = total.ToString();