From 7b19550f7fb14ba340bf162936f95ab39eca22b6 Mon Sep 17 00:00:00 2001 From: Mann Mehta <44433995+mann2108@users.noreply.github.com> Date: Thu, 2 Apr 2020 04:28:03 +0530 Subject: [PATCH] format binary_exponent.cpp --- math/binary_exponent.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/math/binary_exponent.cpp b/math/binary_exponent.cpp index a8f45e3c5..bd9c1ce38 100644 --- a/math/binary_exponent.cpp +++ b/math/binary_exponent.cpp @@ -1,4 +1,4 @@ -///C++ Program to find Binary Exponent recursively. +/// C++ Program to find Binary Exponent recursively. #include /* @@ -8,7 +8,7 @@ * (instead of O(n) multiplications required by the naive approach). */ -///Function to calculate exponent in O(log(n)) using binary exponent. +/// Function to calculate exponent in O(log(n)) using binary exponent. int binExpo(int a,int b) { if (b == 0) return 1; int res = binExpo(a,b/2); @@ -20,7 +20,7 @@ int main() { int a,b; /// Give two nos as a^b (where '^' denotes power exponent operation) std::cin >> a >> b; - ///Result of a^b + /// Result of a^b std::cout << binExpo(a,b) << std::endl; }