Menu
×
×
正确
@(3)
{
int[] myNumbers = {1, 2, 3};
Console.WriteLine(myNumbers[10]);
}
@(5) (Exception e)
{
Console.WriteLine("Something went wrong.");
}
@(7)
{
Console.WriteLine("The 'try catch' is finished.");
}
try
{
int[] myNumbers = {1, 2, 3};
Console.WriteLine(myNumbers[10]);
}
catch (Exception e)
{
Console.WriteLine("Something went wrong.");
}
finally
{
Console.WriteLine("The 'try catch' is finished.");
}
不正确
点击 此处 重试 正确
下一题 ❯w3exercise_input_no_0{ int[] myNumbers = {1, 2, 3}; Console.WriteLine(myNumbers[10]); }w3exercise_input_no_1(Exception e) { Console.WriteLine("Something went wrong."); }w3exercise_input_no_2{ Console.WriteLine("The 'try catch' is finished."); } |