fix indentation of greatestCommonDivisor
This commit is contained in:
parent
e4c09284b5
commit
b178ba16af
@ -51,15 +51,19 @@
|
|||||||
#include <thread>
|
#include <thread>
|
||||||
|
|
||||||
|
|
||||||
int greatestCommonDivisor (int a, int b) {
|
namespace
|
||||||
while (b != 0)
|
{
|
||||||
{
|
int greatestCommonDivisor(int a, int b)
|
||||||
int t = b;
|
{
|
||||||
b = a % b;
|
while (b != 0)
|
||||||
a = t;
|
{
|
||||||
}
|
int t = b;
|
||||||
|
b = a % b;
|
||||||
|
a = t;
|
||||||
|
}
|
||||||
|
|
||||||
return a;
|
return a;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace ix
|
namespace ix
|
||||||
|
Loading…
Reference in New Issue
Block a user