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
changes = new Stack
(); changes.Push("Type Hello"); changes.Push("Make the text bold"); changes.Push("Change the color to red"); Console.WriteLine("Undo: " + changes.Pop()); Console.WriteLine("Undo: " + changes.Pop()); Console.WriteLine("Changes left: " + changes.Count); } } }
Undo: Change the color to red
Undo: Make the text bold
Changes left: 1