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

bookChallenge: Update High Scores

Task

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.

Solution

Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 1. ChapterΒ 4
single

single

Ask AI

expand

Ask AI

ChatGPT

Ask anything or try one of the suggested questions to begin our chat

close

bookChallenge: Update High Scores

Swipe to show menu

Task

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.

Solution

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 1. ChapterΒ 4
single

single

some-alt