summaryrefslogtreecommitdiffstats
path: root/funtest/swap
diff options
context:
space:
mode:
Diffstat (limited to 'funtest/swap')
-rw-r--r--funtest/swap5
1 files changed, 5 insertions, 0 deletions
diff --git a/funtest/swap b/funtest/swap
new file mode 100644
index 0000000..fc72efc
--- /dev/null
+++ b/funtest/swap
@@ -0,0 +1,5 @@
+ if( cur->x:D == cur->y:D ) continue;
+ a = cur->x;
+ cur->x = cur->y;
+ cur->y = a;
+ cur->avg:E = (cur->x+cur->y)/2.0;