1
Answer

how to increment by 1 value in c#

Photo of Carlos kambui

Carlos kambui

9y
697
1
how to increment by 1 value in c# 
int x = 0;
for (int i = 0; i < tStudent.adm_no; ++i)
if (tStudent.adm_no >0)
{
x = x + 1;
tStudent.adm_no = x;
}
i want when i admit new student i got a new adm_no automatically 

Answers (1)