9 Sep 2017

How to make Two Number Add Program in C sharp

How to make Three Number  Add Program in C sharp:-


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

namespace how_to_add_three_num
{
    class Program
    {
        static void Main(string[] args)
        {
            int X, Y, Z, Sum;
            Console.Write("Enter The value of A :");
            X = Convert.ToInt16(Console.ReadLine());
            Console.Write("Enter the value of B :");
            Y = Convert.ToInt16(Console.ReadLine());
            Console.Write("Enter the value of C :");
            Z = Convert.ToInt16(Console.ReadLine());
            Sum = X + Y + Z;
            Console.Write("Thee Num add The value :" + Sum);
            Console.ReadKey();
        }
    }
}

Output:-


No comments:
Write comments

Contact Form

Name

Email *

Message *

© 2014 Rock Programmer . Designed by Bloggertheme9
Powered by Rock Programmer.