Advertisement
desislava_topuzakova

Untitled

Jul 5th, 2020
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1.  
  2.  
  3.  
  4. public List<string> RemoveStudentsByGrade(double grade)
  5.  
  6. {
  7. List<string> foundNames = new List<string>();
  8. for (int i = 0; i < students.Count; i++)
  9. {
  10. if (grade > students[i].Grade)
  11. {
  12. foundNames.Add(students[i].Name);
  13.  
  14. }
  15. }
  16. return foundNames;
  17.  
  18.  
  19.  
  20.  
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement