printing student data using while statement