lukejagg / test-canary

Miscellaneous files for ML + web development
0 stars 1 forks source link

Add new exponent function and integrate into calculator #233

Closed ghost closed 1 year ago

ghost commented 1 year ago

Description

This PR adds a new exponent function to the calculator program and integrates it into the existing calculator function. The exponent function takes two arguments, base and exponent, and returns the result of the base raised to the power of the exponent. The calculator function has been updated to include a new option for the exponent operation in the menu that the user sees. When the user selects the exponent option, the program calls the exponent function with the user-provided numbers and displays the result.

Summary of Changes

Fixes #1.


To checkout this PR branch, run the following command in your terminal:

git checkout sweep/add-exponent-function_1

To get Sweep to edit this pull request, leave a comment below or in the code. Leaving a comment in the code will only modify the file but commenting below can change the entire PR.