//************************************** // Name: array with loop // Description:learn how use array with loop // By: hatem mostafa ahmed // // // Inputs:None // // Returns:None // //Assumes:None // //Side Effects:None //************************************** using System; public class Program { public static void Main() { Console.WriteLine("enter no of employee"); int emps = int.Parse(Console.ReadLine()); String[] empNames = new String[emps]; for(int i=0;i<empNames.Length;i++) { Console.WriteLine("enter employee number" +(i+1)+":"); empNames[i]=Console.ReadLine(); } for(int i=0;i<empNames.Length;i++) { Console.WriteLine(empNames[i]); } } }