Sum the values within the loop, and output the totals in the footer.
Obviously you'll need to calculate the total average from the other totals.
<tbody>
@{
int srno2 = 0;
double tl = 0, nla = 0;
}
@foreach (College.Core.ViewModels.SGPA.ExamsViewModel _Exams in _subject.GetExams())
{
srno2 += 1;
tl += _Exams.TotalLectureConducted.GetValueOrDefault();
nla += _Exams.NoOfLectureAttended.GetValueOrDefault();
<tr>
<td>@srno2</td>
<td>@_Exams.ExamType</td>
<td>@_Exams.ObtainedMark</td>
<td>@_Exams.OutOfMarks</td>
<td>@_Exams.TotalLectureConducted.GetValueOrDefault()</td>
<td>@_Exams.NoOfLectureAttended.GetValueOrDefault()</td>
<td>@_Exams.AverageAttendance.GetValueOrDefault()%</td>
</tr>
}
</tbody>
<tfoot>
<tr>
<td colspan="4" align="right">Total</td>
<td>@tl</td>
<td>@nla</td>
@if (tl == 0)
{
<td>(N/A)</td>
}
else
{
double av = nla / tl;
<td>av.ToString("P")</td>
}
</tr>
</tfoot>