Challenge: Array Declaration
Create an empty array called heights
of type float
and length (size) of 7
.
main.cs
12345678910111213using System; namespace ConsoleApp { internal class Program { static void Main(string[] args) { // Declare an array below this line ___ } } }
The syntax of declaring an empty array is 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]; } } }
Oliko kaikki selvää?
Kiitos palautteestasi!
Osio 5. Luku 2
Kysy tekoälyä
Kysy tekoälyä
Kysy mitä tahansa tai kokeile jotakin ehdotetuista kysymyksistä aloittaaksesi keskustelumme
Awesome!
Completion rate improved to 1.59
Challenge: Array Declaration
Pyyhkäise näyttääksesi valikon
Create an empty array called heights
of type float
and length (size) of 7
.
main.cs
12345678910111213using System; namespace ConsoleApp { internal class Program { static void Main(string[] args) { // Declare an array below this line ___ } } }
The syntax of declaring an empty array is 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]; } } }
Oliko kaikki selvää?
Kiitos palautteestasi!
Osio 5. Luku 2