finally
Ravshan Sodiqov
try
{
int a = 0;
int b = 5;
Console.WriteLine(b/a);
}
catch(DivideByZeroException)
{
Console.WriteLine("0 ga bo'lish mumkin emas !");
}
finally
{
Console.WriteLine("Dastur ishlashi tugallandi.");
} Last updated
Was this helpful?