fix indentation of greatestCommonDivisor

This commit is contained in:
Benjamin Sergeant 2019-04-25 16:21:36 -07:00
parent e4c09284b5
commit b178ba16af

View File

@ -51,15 +51,19 @@
#include <thread>
int greatestCommonDivisor (int a, int b) {
while (b != 0)
{
int t = b;
b = a % b;
a = t;
}
namespace
{
int greatestCommonDivisor(int a, int b)
{
while (b != 0)
{
int t = b;
b = a % b;
a = t;
}
return a;
return a;
}
}
namespace ix