Abschnitt 1. Kapitel 11
single
Challenge: Filter Passing Grades
Swipe um das Menü anzuzeigen
Aufgabe
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.
Lösung
War alles klar?
Danke für Ihr Feedback!
Abschnitt 1. Kapitel 11
single
Fragen Sie AI
Fragen Sie AI
Fragen Sie alles oder probieren Sie eine der vorgeschlagenen Fragen, um unser Gespräch zu beginnen