- C# Program

Absolute Number

using System;
namespace AbsoluteNumber
{
    class Program
    {
        static void Main(string[] args)
        {
            int a;
            Console.WriteLine("Enter the number :");
            a = Convert.ToInt32(Console.ReadLine());
            if (a >= 0)
                Console.WriteLine("{0}'s absolute value is {1}", a, a);
            else
                Console.WriteLine("{0}'s absolute value is {1}", a, a * -1);
        }
    }
}