Code prints student result neatly