Code prints student result in a table