Skip to content

Commit

Permalink
adding works
Browse files Browse the repository at this point in the history
  • Loading branch information
VeniGogniti committed Jul 1, 2024
1 parent 31b6249 commit d6f5f97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions homework/nwd-nnw/nwdNww.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once
#include <iostream>
#include <cstdlib>
#include <iostream>

int NWD(int lhs, int rhs) {
lhs = std::abs(lhs);
Expand Down Expand Up @@ -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);
}

0 comments on commit d6f5f97

Please sign in to comment.