I don't understand what I am doing wrong. Can anyone help me please???
Code blocks are created by indenting at least 4 spaces
... and can span multiple lines
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace chapter_5_c_sharp_array
{
class Program
{
static void Main(string[] args)
{
int x;
Console.Write("How many people are there in your room? ");
x = Convert.ToInt32(Console.ReadLine());
Console.WriteLine(" ");
for (int i = 0; i < x; i++)
{
string[] names_ = new string[i];
Console.Write("Enter a name: ");
names_[i] = Console.ReadLine();
Console.WriteLine(names_[i]);
}
}
}
}