Défi : Déclaration de Tableau
Créer un tableau vide nommé heights de type float et de longueur (taille) 7.
main.cs
12345678910111213using System; namespace ConsoleApp { internal class Program { static void Main(string[] args) { // Declare an array below this line ___ } } }
La syntaxe pour déclarer un tableau vide est datatype[] arrayName = new datatype[size];.
main.cs
12345678910111213using System; namespace ConsoleApp { internal class Program { static void Main(string[] args) { // Declare an array below this line float[] heights = new float[7]; } } }
Tout était clair ?
Merci pour vos commentaires !
Section 5. Chapitre 2
Demandez à l'IA
Demandez à l'IA
Posez n'importe quelle question ou essayez l'une des questions suggérées pour commencer notre discussion
Awesome!
Completion rate improved to 1.59
Défi : Déclaration de Tableau
Glissez pour afficher le menu
Créer un tableau vide nommé heights de type float et de longueur (taille) 7.
main.cs
12345678910111213using System; namespace ConsoleApp { internal class Program { static void Main(string[] args) { // Declare an array below this line ___ } } }
La syntaxe pour déclarer un tableau vide est datatype[] arrayName = new datatype[size];.
main.cs
12345678910111213using System; namespace ConsoleApp { internal class Program { static void Main(string[] args) { // Declare an array below this line float[] heights = new float[7]; } } }
Tout était clair ?
Merci pour vos commentaires !
Section 5. Chapitre 2