From c559ebcedbf811333009a9cc27cc782c75f4a338 Mon Sep 17 00:00:00 2001 From: Krishna Vedala Date: Thu, 28 May 2020 16:41:07 -0400 Subject: [PATCH] replace printf & scanf with std::cout and std::cin --- math/power_for_huge_numbers.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/math/power_for_huge_numbers.cpp b/math/power_for_huge_numbers.cpp index 5cb1ae514..301767d66 100644 --- a/math/power_for_huge_numbers.cpp +++ b/math/power_for_huge_numbers.cpp @@ -81,10 +81,10 @@ void power(int x, int n) { /** Main function */ int main() { int exponent, base; - printf("Enter base "); - scanf("%id \n", &base); - printf("Enter exponent "); - scanf("%id", &exponent); + std::cout << "Enter base "; + std::cin >> base; + std::cout << "Enter exponent "; + std::cin >> exponent; power(base, exponent); return 0; }