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 + " "); } }
Tutto è chiaro?
Grazie per i tuoi commenti!
Sezione 1. Capitolo 2
Chieda ad AI
Chieda ad AI
Chieda pure quello che desidera o provi una delle domande suggerite per iniziare la nostra conversazione
Suggested prompts:
Can you explain what "explicit declaration" means in this context?
Can you show me how to declare a list of a different type, like strings?
What does the code do after declaring the list?
Awesome!
Completion rate improved to 2.04
Practicing List Declaration
Scorri per mostrare il menu
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 + " "); } }
Tutto è chiaro?
Grazie per i tuoi commenti!
Sezione 1. Capitolo 2