Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Apprendre Challenge: Filter Passing Grades | Searching and Filtering Arrays
C# Arrays

bookChallenge: 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 scores that are greater than or equal to 60.
  • The order of passing grades in the returned array should match their order in the original scores array.
  • If there are no passing grades, return an empty array.

Solution

Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 2. Chapitre 4
single

single

Demandez à l'IA

expand

Demandez à l'IA

ChatGPT

Posez n'importe quelle question ou essayez l'une des questions suggérées pour commencer notre discussion

close

bookChallenge: 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 scores that are greater than or equal to 60.
  • The order of passing grades in the returned array should match their order in the original scores array.
  • If there are no passing grades, return an empty array.

Solution

Switch to desktopPassez à un bureau pour une pratique réelleContinuez d'où vous êtes en utilisant l'une des options ci-dessous
Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 2. Chapitre 4
single

single

some-alt