Hi
I am beginner in C#.please tell me what is problem in this code :
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
string[] firstName={};
string[] lastName={};
Console.WriteLine("Please type your firstName : ");
for (int i = 0; i < 10; i++)
{
firstName[i] = Console.ReadLine();
}
Console.WriteLine("Please type your lastName : ");
for (int j = 0; j < 10; j++)
{
lastName[j] = Console.ReadLine();
}
for (int k = 0; k < 10; k++)
{
Console.WriteLine(k + " " + firstName[k].ToUpper() + " " + lastName[k].ToUpper());
}
Console.ReadLine();
}
}
}
if you can, please repair it for me .