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:
Post a Comment