Challenge: Filter Passing Grades
Tâche
Swipe to start coding
Write a program that filters and prints all passing grades from an integer array of scores. A passing grade is any score that is 60 or above.
- Return a new integer array containing only the values from
scoresthat are greater than or equal to 60. - The order of passing grades in the returned array should match their order in the original
scoresarray. - If there are no passing grades, return an empty array.
Solution
Tout était clair ?
Merci pour vos commentaires !
Section 2. Chapitre 4
single
Demandez à l'IA
Demandez à l'IA
Posez n'importe quelle question ou essayez l'une des questions suggérées pour commencer notre discussion
Awesome!
Completion rate improved to 3.57
Challenge: Filter Passing Grades
Glissez pour afficher le menu
Tâche
Swipe to start coding
Write a program that filters and prints all passing grades from an integer array of scores. A passing grade is any score that is 60 or above.
- Return a new integer array containing only the values from
scoresthat are greater than or equal to 60. - The order of passing grades in the returned array should match their order in the original
scoresarray. - If there are no passing grades, return an empty array.
Solution
Tout était clair ?
Merci pour vos commentaires !
Section 2. Chapitre 4
single