Practicing List Declaration
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
12345678910111213using 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 + " "); } }
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 1. Kapittel 2
Spør AI
Spør AI
Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår
Awesome!
Completion rate improved to 2.04
Practicing List Declaration
Sveip for å vise menyen
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
12345678910111213using 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 + " "); } }
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 1. Kapittel 2