C# Program to print the sum of two numbers

Problem

Write a program in C# to add two numbers and display the result in copnsole window.

How to print the sum of two numbers in C# ?

using System;

namespace AbundantcodeApp
{
    class Program
    {
        static void Main(string[] args)
        {
            int input1 = 10;
            int input2 = 25;
            int result = input1 + input2;
            Console.WriteLine("Abundantcode.com coding sample");
            Console.WriteLine(result);
            Console.ReadLine();
        }
    }
}

Output

Abundantcode.com coding sample

35