class Program
{
static void Main(string[] args)
{
double num1, num2, result;
Console.WriteLine("Enter the First Value ");
num1 = double.Parse(Console.ReadLine());
Console.WriteLine("Enter the Second Value ");
num2 = double.Parse(Console.ReadLine());
result = Math.Sqrt(num1 * num1 +
num2 * num2);
Console.WriteLine("The Other Number is : {0}", result);
Console.ReadLine();
}
}
Output:
No comments:
Post a Comment