Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lære Challenge: Update High Scores | Array Fundamentals
C# Arrays

bookChallenge: Update High Scores

Opgave

Swipe to start coding

Practice accessing and modifying elements in an array by writing a complete program from scratch.

  • Create an array named highScores with the values 1200, 950, 870, 760, 650.
  • Update the second element in the array to 990.
  • Print all elements of the array, each on a new line.

Løsning

Var alt klart?

Hvordan kan vi forbedre det?

Tak for dine kommentarer!

Sektion 1. Kapitel 4
single

single

Spørg AI

expand

Spørg AI

ChatGPT

Spørg om hvad som helst eller prøv et af de foreslåede spørgsmål for at starte vores chat

close

bookChallenge: Update High Scores

Stryg for at vise menuen

Opgave

Swipe to start coding

Practice accessing and modifying elements in an array by writing a complete program from scratch.

  • Create an array named highScores with the values 1200, 950, 870, 760, 650.
  • Update the second element in the array to 990.
  • Print all elements of the array, each on a new line.

Løsning

Switch to desktopSkift til skrivebord for at øve i den virkelige verdenFortsæt der, hvor du er, med en af nedenstående muligheder
Var alt klart?

Hvordan kan vi forbedre det?

Tak for dine kommentarer!

Sektion 1. Kapitel 4
single

single

some-alt