Program.cs
 

using System;

namespace MyApplication
{
  class Program
  {
    static void Main(string[] args)
    {
      int x = 5;
      int y = 2;
      Console.WriteLine(x % y);  
     }
  }
}

Result:
1