Skip to content
Open

Power #135

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -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
8 changes: 7 additions & 1 deletion Console/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

Expand Down