MyClass.java
 

using System;

namespace MyApplication
{
  class Program
  {
    static void Main(string[] args)
    {
      int x = 10;
      int y = 20;
      int z = x + y;
      Console.WriteLine(z);
    }
  }
}

Result:
30