From b9075e3368ad2ad463bf8f2b552b94ffd5664864 Mon Sep 17 00:00:00 2001 From: Kaden Boyer Date: Tue, 24 Mar 2026 21:21:16 -0500 Subject: [PATCH 1/2] Implement power method --- Console/Program.cs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Console/Program.cs b/Console/Program.cs index 56bb8606..9f0dd3ec 100644 --- a/Console/Program.cs +++ b/Console/Program.cs @@ -84,8 +84,7 @@ public static double Divide(string x, string y) } // Implement this method following a similar pattern as above - public static double Power(string x, string y) - { - return 0.0; - } +public static double Power(string x, string y) +{ + return Math.Pow(double.Parse(x), double.Parse(y)); } From 435e385342b9a7f9d2b9d9322475194b2bde9673 Mon Sep 17 00:00:00 2001 From: Kaden Boyer Date: Tue, 24 Mar 2026 21:29:59 -0500 Subject: [PATCH 2/2] Implement Power Method --- Console/Program.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Console/Program.cs b/Console/Program.cs index 9f0dd3ec..c967500a 100644 --- a/Console/Program.cs +++ b/Console/Program.cs @@ -88,3 +88,4 @@ public static double Power(string x, string y) { return Math.Pow(double.Parse(x), double.Parse(y)); } +} \ No newline at end of file