C# .Net Program for find the sum of two number

C# .Net Program for find the sum of two number

 using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApp
{
    class Program
    {
        static void Main(string[] args)
        {
            int a, b, c;
            Console.WriteLine("Enter value of A:");
            a = Convert.ToInt32(Console.ReadLine());
            Console.WriteLine("Enter value of B:");
            b = Convert.ToInt32(Console.ReadLine());
            c = a + b;
            Console.WriteLine("Addition ="+c);
      }
    }
}

 


Previous
Next Post »