From d6f5f976ceb4c9cc2de73d7358aefd1bcffbf822 Mon Sep 17 00:00:00 2001 From: VeniGogniti Date: Mon, 1 Jul 2024 14:09:52 +0200 Subject: [PATCH] adding works --- homework/nwd-nnw/nwdNww.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homework/nwd-nnw/nwdNww.hpp b/homework/nwd-nnw/nwdNww.hpp index e4bb5a14..d9a724df 100644 --- a/homework/nwd-nnw/nwdNww.hpp +++ b/homework/nwd-nnw/nwdNww.hpp @@ -1,6 +1,6 @@ #pragma once -#include #include +#include int NWD(int lhs, int rhs) { lhs = std::abs(lhs); @@ -30,5 +30,5 @@ int NWW(int lhs, int rhs) { if (lhs == 0 || rhs == 0) { return 0; } - return std::abs(lhs / NWD (lhs, rhs)) * std::abs(rhs); + return std::abs(lhs / NWD(lhs, rhs)) * std::abs(rhs); }