Sfida: Dichiarazione di Array
Crea un array vuoto chiamato heights di tipo float e di lunghezza (dimensione) 7.
main.cs
12345678910111213using System; namespace ConsoleApp { internal class Program { static void Main(string[] args) { // Declare an array below this line ___ } } }
La sintassi per dichiarare un array vuoto è 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]; } } }
Tutto è chiaro?
Grazie per i tuoi commenti!
Sezione 5. 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 show me how to declare the `heights` array in code?
What does the array look like after initialization?
Can you explain what each part of the declaration means?
Awesome!
Completion rate improved to 1.59
Sfida: Dichiarazione di Array
Scorri per mostrare il menu
Crea un array vuoto chiamato heights di tipo float e di lunghezza (dimensione) 7.
main.cs
12345678910111213using System; namespace ConsoleApp { internal class Program { static void Main(string[] args) { // Declare an array below this line ___ } } }
La sintassi per dichiarare un array vuoto è 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]; } } }
Tutto è chiaro?
Grazie per i tuoi commenti!
Sezione 5. Capitolo 2