Run ❯
Get your
own C#
server
❯
Run Code
Ctrl+Alt+R
Change Orientation
Ctrl+Alt+O
Change Theme
Ctrl+Alt+D
Change Language
Go to Spaces
Ctrl+Alt+P
using System; using System.Collections.Generic; namespace MyApplication { class Program { static void Main(string[] args) { Stack
cars = new Stack
(); cars.Push("Volvo"); cars.Push("BMW"); cars.Push("Ford"); Console.WriteLine(cars.Pop()); // Ford Console.WriteLine(cars.Peek()); // BMW Console.WriteLine(cars.Count); // 2 } } }
Ford
BMW
2