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[] prices = {10, 20, 30}; int total = 0; for (int i = 0; i < prices.Length; i++) { total = total + prices[i]; } Console.WriteLine(total); // 60 } } }
60