You are viewing a single comment's thread. Return to all comments →
I've got a pretty sick one-liner too for C++ can your boy get some upvotes =D
for (int i = 0; i < grades.size(); i++){int nearest5Multiple = 5*((grades[i]/5)+1);if (grades[i] >= 38 &&(nearest5Multiple-grades[i]) < 3 ){grades[i] = nearest5Multiple;}}return grades;
Seems like cookies are disabled on this browser, please enable them to open this website
Grading Students
You are viewing a single comment's thread. Return to all comments →
I've got a pretty sick one-liner too for C++ can your boy get some upvotes =D