Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lära Challenge: Update High Scores | Array Fundamentals
Quizzes & Challenges
Quizzes
Challenges
/
C# Arrays

bookChallenge: Update High Scores

Uppgift

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 allt tydligt?

Hur kan vi förbättra det?

Tack för dina kommentarer!

Avsnitt 1. Kapitel 4
single

single

Fråga AI

expand

Fråga AI

ChatGPT

Fråga vad du vill eller prova någon av de föreslagna frågorna för att starta vårt samtal

Suggested prompts:

Can you explain this in simpler terms?

What are the main points I should remember?

Can you give me an example?

close

bookChallenge: Update High Scores

Svep för att visa menyn

Uppgift

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 desktopByt till skrivbordet för praktisk övningFortsätt där du är med ett av alternativen nedan
Var allt tydligt?

Hur kan vi förbättra det?

Tack för dina kommentarer!

Avsnitt 1. Kapitel 4
single

single

some-alt