You need to include that code in a loop so that it repeats until the user terminates it, like:
static void Main(string[] args)
{
System.Console.WriteLine(" Program for the Stack using Arrays ");
System.Console.WriteLine("----------------------------------");
Stackarray s = new Stackarray();
while (true)
{
System.Console.WriteLine(" Enter your choice ");
System.Console.WriteLine(" 1. Push ");
System.Console.WriteLine(" 2. Display");
System.Console.WriteLine(" 3. Exit");
int ch = 0;
ch = int.Parse(System.Console.ReadLine());
switch (ch)
{
case 1:
s.push();
break;
case 2:
s.display();
break;
case 3:
break;
}
if (ch == 3)
break;
}
}