Share your content and reach out to more developers by submitting them at - Developer Community Site

C# Program to print the sum of two numbers


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(" coding sample");

Output coding sample


Leave Your Comment