Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lernen TEST HINT SOLUTION | TEST C# SECTION 1
TEST C# COURSE
course content

Kursinhalt

TEST C# COURSE

TEST C# COURSE

book
TEST HINT SOLUTION

Challenge

Fill in the blanks to declare a list called numbers that stores integer numbers from 1 to 10. Use explicit declaration for declaring the list.

index.cs

index.cs

copy
12345678910111213
using System; using System.Collections.Generic; class Program { static void Main(string[] args) { ___ ___ = ___ ___ { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 }; foreach (int num in numbers) Console.Write(num + " "); } }

We declare empty lists by using the List<type> name = new List<type>(); syntax. Initializing a list with some data has a very similar syntax.

  • fw f
  • fd
  • f dsf
index.cs

index.cs

copy
12345678910111213
using System; using System.Collections.Generic; class Program { static void Main(string[] args) { List<int> numbers = new List<int> { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 }; foreach (int num in numbers) Console.Write(num + " "); } }

War alles klar?

Wie können wir es verbessern?

Danke für Ihr Feedback!

Abschnitt 1. Kapitel 2

Fragen Sie AI

expand

Fragen Sie AI

ChatGPT

Fragen Sie alles oder probieren Sie eine der vorgeschlagenen Fragen, um unser Gespräch zu beginnen

course content

Kursinhalt

TEST C# COURSE

TEST C# COURSE

book
TEST HINT SOLUTION

Challenge

Fill in the blanks to declare a list called numbers that stores integer numbers from 1 to 10. Use explicit declaration for declaring the list.

index.cs

index.cs

copy
12345678910111213
using System; using System.Collections.Generic; class Program { static void Main(string[] args) { ___ ___ = ___ ___ { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 }; foreach (int num in numbers) Console.Write(num + " "); } }

We declare empty lists by using the List<type> name = new List<type>(); syntax. Initializing a list with some data has a very similar syntax.

  • fw f
  • fd
  • f dsf
index.cs

index.cs

copy
12345678910111213
using System; using System.Collections.Generic; class Program { static void Main(string[] args) { List<int> numbers = new List<int> { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 }; foreach (int num in numbers) Console.Write(num + " "); } }

War alles klar?

Wie können wir es verbessern?

Danke für Ihr Feedback!

Abschnitt 1. Kapitel 2
some-alt