This is the eleventh in a series of computer science lessons about programming with C# for beginners. In this lesson you will learn more about array variables. You will see some different ways to declare and initialise an array variable with only one line of code, which is particularly useful when developing and testing applications. You will also be invited to try number of exercises that involve working with the contents of an array variable.
Chapters:
00:00 Output the contents of an array
01:40 Different ways to declare and initialise an array
04:30 Add up the values in an array of numbers
05:32 Exercise – Add up the values in an array greater than 50
05:53 Solution - Add up the values in an array greater than 50
06:19 Exercise - Add up the even numbers in an array
06:47 Solution - Add up the even numbers in an array
07:32 Exercise - Add up the odd numbers bigger than 50
07:46 Solution - Add up the odd numbers bigger than 50
08:39 Exercise – Replace odd numbers with even numbers
08:57 Solution - Replace odd numbers with even numbers