The source code to print the edge values using Pow() method is given below. The given program is compiled and executed successfully on Microsoft Visual Studio.
Number1 : Infinity
Number2 : Infinity
Number3 : 1
Number4 : NaN
Press any key to continue . . .
Explanation:
Here, we created a class Edge that contains the Main() method. The Main() method is the entry point for the program. Here we declared 4 variables of the double type that are initialized with 0 and then find the edge's values of numbers using Pow() method of Math class and print the result on the console screen.
Program:
The source code to print the edge values using Pow() method is given below. The given program is compiled and executed successfully on Microsoft Visual Studio.
Output:
Explanation:
Here, we created a class Edge that contains the Main() method. The Main() method is the entry point for the program. Here we declared 4 variables of the double type that are initialized with 0 and then find the edge's values of numbers using Pow() method of Math class and print the result on the console screen.
need an explanation for this answer? contact us directly to get an explanation for this answer