fix indentation of greatestCommonDivisor
This commit is contained in:
parent
7256b3df65
commit
561eac816b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user