Online C# Compiler
										
										
using System;

class Program
{
    static void Main() {
        int x = 20;
        int y = 30;
        int z = x + y;

        Console.Write("Sum of x + y = "+ z);
    }
}
                                
                                

Output Results

										
Sum of x + y = 50