From 022e2f02e7b01c4ac5e34be2fc38a3255f83b509 Mon Sep 17 00:00:00 2001 From: Mann Mehta <44433995+mann2108@users.noreply.github.com> Date: Sun, 29 Mar 2020 17:36:33 +0530 Subject: [PATCH] modified by removing namespace using-directive --- math/eulers_totient_function.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/math/eulers_totient_function.cpp b/math/eulers_totient_function.cpp index 63058063c..f05c7dab4 100644 --- a/math/eulers_totient_function.cpp +++ b/math/eulers_totient_function.cpp @@ -1,6 +1,5 @@ -#include - -using namespace std; +/// C++ Program to find Euler Totient Function +#include /** @@ -22,6 +21,7 @@ Hence Implementation in O(sqrt(n)). */ +/// Function to caculate euler totient function int phiFunction(int n) { int result = n; for (ll i=2; i*i <= n; i++) { @@ -38,6 +38,6 @@ int phiFunction(int n) { int main() { int n; - cin >> n; - cout << phiFunction(n) << endl; + std::cin >> n; + std::cout << phiFunction(n) << endl; }