I am now learning how to use the For Loops in C#, but when I try to compile my program, three errors in the console appear and one of them says that int doesn't have a definition for Lenght (I'm just not showing the errors because they are in portuguese), any idea about why this is happening?
using System;
namespace Giraffe
{
class Program
{
static void Main(string[] args)
{
int luckyNumbers = {4, 8, 15, 16, 23, 42};
for (int i = 0; i < luckyNumbers.Length; i++)
{
Console.WriteLine(luckyNumbers[i]);
}
Console.ReadLine();
}
}
}