Dotnet, Csharp, Data Structure Algorithm, Stack, Development.
In the code below I’m adding three elements to the stackDemo: stackDemo.Push("Melon"); stackDemo.Push("Banana"); stackDemo.Push("Kiwi"); For each Push operation, the element will be added to the top of the stack: So after adding these three elements, the “1- Melon” (the first element to be added)