Practice exceptions pattern with value 24.
Ready — edit the code above and click Run.
using System;
class Program
{
static void Main()
{
int x = 24;
Console.WriteLine(x);
}
}
Try solving on your own first, then reveal the official answer.
Extend starter into full exceptions solution.