This PR adds a new operation for computing the exponent to the calculator program. The exponent operation allows the user to calculate the result of a base raised to the power of an exponent.
Summary of Changes
Added a new function named "exponent" to calculate the exponent operation.
Integrated the exponent operation into the existing calculator function.
Updated the menu in the calculator function to include the option for the exponent operation.
Handled the user's choice for the exponent operation in the code that processes the user's input.
Updated the condition to check if the user wants to quit the calculator to use '6' instead of '5'.
Please review and merge this PR. Thank you!
Fixes #1.
To checkout this PR branch, run the following command in your terminal:
git checkout sweep/add-exponent-operation_2
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.
Description
This PR adds a new operation for computing the exponent to the calculator program. The exponent operation allows the user to calculate the result of a base raised to the power of an exponent.
Summary of Changes
Please review and merge this PR. Thank you!
Fixes #1.
To checkout this PR branch, run the following command in your terminal:
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.