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[] ages = {20, 22, 18, 35, 48, 26, 87, 70}; int lowestAge = ages[0]; foreach (int age in ages) { if (age < lowestAge) { lowestAge = age; } } Console.WriteLine("The lowest age is " + lowestAge); } } }
The lowest age is 18