print students using while