Project 3 - Currency Type
gcd.cpp
1 #include "gcd.hpp"
2 
3 int gcd(int n, int m)
4 {
5  if (n < 0)
6  n = -n;
7  while (m != 0) {
8  int tmp{n % m};
9  n = m;
10  m = tmp;
11  }
12  return n;
13 }