static void Main(string[] args) { int i; int[] arr = new int[4]; // 4 size array for (i = 0; i<4; i++) { Console.Write("\nEnter your number:\t"); //Storing value in an array arr[i] = Convert.ToInt32(Console.ReadLine()); } Console.WriteLine("\n\n"); //Printing the value on console for (i = 0; i<4; i++) { Console.WriteLine("you entered {0}", arr[i]); } Console.ReadLine(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)