summaryrefslogtreecommitdiffstats
path: root/languages/cpp/debugger/tests/tracing/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'languages/cpp/debugger/tests/tracing/main.cpp')
-rw-r--r--languages/cpp/debugger/tests/tracing/main.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/languages/cpp/debugger/tests/tracing/main.cpp b/languages/cpp/debugger/tests/tracing/main.cpp
new file mode 100644
index 00000000..4a1a38d7
--- /dev/null
+++ b/languages/cpp/debugger/tests/tracing/main.cpp
@@ -0,0 +1,15 @@
+
+// Алгоритм Евклида вычисления наибольшего общего делителя
+int main()
+{
+ int i, j;
+ i = 157;
+ j = 312;
+
+ while( i != j )
+ {
+ if( i > j ) i = i-j;
+ else j = j-i;
+ }
+ return 0;
+}