Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public List<string> RemoveStudentsByGrade(double grade)
- {
- List<string> foundNames = new List<string>();
- for (int i = 0; i < students.Count; i++)
- {
- if (grade > students[i].Grade)
- {
- foundNames.Add(students[i].Name);
- }
- }
- return foundNames;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement