if else statement csharp

Code Example - if else statement csharp

                
                        if (x == 0)
{
  Console.WriteLine("hello world");
}
else
{
  return 5;
}