mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-02-10 14:05:17 +08:00
Update math/binary_exponent.cpp
Co-Authored-By: John Law <johnlaw.po@gmail.com>
This commit is contained in:
@@ -23,7 +23,7 @@ int binExpo(int a, int b) {
|
||||
|
||||
int main() {
|
||||
int a, b;
|
||||
/// Give two nos as a^b (where '^' denotes power exponent operation)
|
||||
/// Give two numbers a, b
|
||||
std::cin >> a >> b;
|
||||
/// Result of a^b
|
||||
std::cout << binExpo(a, b) << std::endl;
|
||||
|
||||
Reference in New Issue
Block a user