diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..3623ba6f --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,19 @@ +name: 'Run App Shelby Stevens' + +on: [push, pull_request] + +jobs: + check-bats-version: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-dotnet@v1 + with: + dotnet-version: '5.0.301' + - uses: nuget/setup-nuget@v1 + - name: Nuget Restore + run: nuget restore GithubActions.sln + - name: Install dependencies + run: dotnet restore GithubActions.sln + - name: Build + run: msbuild /p:Configuration=Release GithubActions.sln diff --git a/Console/Program.cs b/Console/Program.cs index 9be02228..88720930 100644 --- a/Console/Program.cs +++ b/Console/Program.cs @@ -84,7 +84,13 @@ 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) { - throw new NotImplementedException(); + double pow = 1; + + for ( int i = 0; i < double.Parse(y); i++) + { + pow = pow * double.Parse(x); + } + return pow; } }