test_stack2
Stack ::POP , removes an element and adjust the stack
Code :

// Namespace Declaration
//File location : C:\BareBone_CSharp\Source_Code\Template
using System;
//csc test_stack2.cs
using System.Collections;
using System.Collections.Generic;
// Program start class
namespace test_stack2
{

class CsharpTemplate
{
// Main begins program execution.
static void Main(string[] str)
{
Stack stack1 = new Stack();
stack1.Push("1 =Jan");
stack1.Push("2 =Feb");
stack1.Push("3 =Mar");
stack1.Push("4 =Apr");
stack1.Push("5 =May");
IEnumerable c = stack1;
foreach(Object obj in c)
{
Console.Write(obj + " ");
}
Console.WriteLine( stack1.Pop() + " ");
foreach(Object obj in c)
{
Console.Write(obj + " " );
}
}
}
}
//