Sunday, October 4, 2020

Addition of Two Numbers in C#

 A simple program to ask the user to give two numbers and the program will compute the sum of two numbers using C# programming language.

I am currently accepting programming work, IT projects, school and application development, programming projects, thesis and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me in the following email address for further details.  If you want to advertise on my website kindly contact me also in my email address also. Thank you.


My email address is the following jakerpomperada@gmail.com, jakerpomperada@aol.com, and jakerpomperada@yahoo.com.

My mobile number here in the Philippines is 09173084360.

My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.

Here in Bacolod City I also accepting computer repair, networking and Arduino Project development at a very affordable price.

Program Listing

// Addition_Two_Numbers.cs
// Author   : Mr. Jake Rodriguez Pomperada, MAED-IT, MIT
// Date     : October 4, 2020    Sunday  9:20 AM
// Website  : http://www.jakerpomperada.com
//            http://www.jakerpomperada.blogspot.com
// Email    : jakerpomperada@gmail.com
// Location : Bacolod City, Negros Occidental, Philippines

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

namespace Addition_of_Two_Numbers
{
    class Program
    {
        static void Main(string[] args)
        {

        Console.Write("\n");
        Console.Write("\tAddition of Two Numbers in C#\n\n"); 
        Console.Write("\tGive First Value  :  ");
        int a = Convert.ToInt32(Console.ReadLine());
        Console.Write("\tGive Second Value : ");
        int b = Convert.ToInt32(Console.ReadLine());

        // Perform addition of two numbers 
      int sum = (a+b);
      Console.Write("\n");
      Console.WriteLine("\tThe sum of {0} and {1} is {2}.", a, b, sum);
      Console.Write("\n");
      Console.Write("\tEnd of Program");
      Console.Write("\n");
      Console.ReadKey(); 
        }
    }
}

No comments:

Post a Comment