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
99
1
2
3
4
5
6
7
8
9
10
11
12
13
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 + " ");
}
}
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 + " "); } }
Tudo estava claro?
Obrigado pelo seu feedback!
Seção 1. Capítulo 2
Pergunte à IA
Pergunte o que quiser ou experimente uma das perguntas sugeridas para iniciar nosso bate-papo