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; namespace MyApplication { class Program { static void Swap(ref int a, ref int b) { int temp = a; a = b; b = temp; } static void Main(string[] args) { int x = 10; int y = 20; Console.WriteLine("Before: x = " + x + ", y = " + y); Swap(ref x, ref y); Console.WriteLine("After: x = " + x + ", y = " + y); } } }
Before: x = 10, y = 20
After: x = 20, y = 10