Website Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
Commit92164449ef27e248ae052b0b3f4aea7e632c6c0b (patch)
Author
 Justsvetoslavov <justsvetoslavov@gmail.com>
2021-10-23 16:05:51 +0300
Committer
 Justsvetoslavov <justsvetoslavov@gmail.com>
2021-10-23 16:05:51 +0300
Files2af8d7b4669b8517e441fa826971dcc33e4656b9
Introduction_to_programming_FMI-92164449ef27e248ae052b0b3f4aea7e632c6c0b.tar
Introduction_to_programming_FMI-92164449ef27e248ae052b0b3f4aea7e632c6c0b.tar.gz
Introduction_to_programming_FMI-92164449ef27e248ae052b0b3f4aea7e632c6c0b.zip
Parent992a8de2166f1057fff53158e5774226d1e2812f (diff)
Parent55346eaa927e543d8a389e1e34b24a309ebf45f5 (diff)
Merge branch 'main' of https://github.com/Angeld55/Introduction_to_programming_FMI
1 files changed, 2 insertions, 2 deletions
-rw-r--r--Sem. 03/example 2 - gcd (euclid).cpp4
diff --git a/Sem. 03/example 2 - gcd (euclid).cpp b/Sem. 03/example 2 - gcd (euclid).cpp
index 4f2a97d..9af093b 100644
--- a/Sem. 03/example 2 - gcd (euclid).cpp
+++ b/Sem. 03/example 2 - gcd (euclid).cpp
@@ -8,7 +8,7 @@ int main()
if (n < k) //swap
{
- int temp = k;
+ int temp = n;
n = k;
k = temp;
}
@@ -21,4 +21,4 @@ int main()
}
cout << n << endl;
-} \ No newline at end of file
+}