- 2
how to use array to generate 7 digit value for 100 student ?
the first digit and second is set as U and S ! The other 5 digit value is random generate from 0-9
1 Answer
+ 1
char student[100][7];
student[0][0]='U'; student[0][1]='S'; Fill in the other 5 digits of first student. Loop thru array making next student id one higher that the previous.