mirror of
https://github.com/markjprice/cs11dotnet7.git
synced 2025-12-06 05:32:03 +01:00
16 lines
206 B
C#
16 lines
206 B
C#
checked
|
|
{
|
|
try
|
|
{
|
|
int max = 500;
|
|
for (byte i = 0; i < max; i++)
|
|
{
|
|
WriteLine(i);
|
|
}
|
|
}
|
|
catch (OverflowException ex)
|
|
{
|
|
WriteLine($"{ex.GetType()} says {ex.Message}");
|
|
}
|
|
}
|