From c931b4675f5f8cb3a87d4f8606d1689674b13081 Mon Sep 17 00:00:00 2001 From: sandyboypraper Date: Mon, 14 Dec 2020 12:38:08 +0530 Subject: [PATCH] some changes in coding style to make it standerize --- Maths/EulersTotientFunction.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Maths/EulersTotientFunction.js b/Maths/EulersTotientFunction.js index 34377036d..90fd27450 100644 --- a/Maths/EulersTotientFunction.js +++ b/Maths/EulersTotientFunction.js @@ -19,8 +19,8 @@ const gcdOfTwoNumbers = (x, y) => { const eulersTotientFunction = (n) => { let countOfRelativelyPrimeNumbers = 1 - for ( let iterator = 2; iterator <= n; iterator++ ){ - if (gcdOfTwoNumbers(iterator, n) === 1)countOfRelativelyPrimeNumbers++ + for (let iterator = 2; iterator <= n; iterator++) { + if (gcdOfTwoNumbers(iterator, n) === 1) countOfRelativelyPrimeNumbers++ } return countOfRelativelyPrimeNumbers }