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 Main(string[] args) { int number = 1; int total = 0; while (number <= 5) { total = total + number; Console.WriteLine("Add " + number + ": the total is " + total); number++; } } } }
Add 1: the total is 1
Add 2: the total is 3
Add 3: the total is 6
Add 4: the total is 10
Add 5: the total is 15