summaryrefslogtreecommitdiff
path: root/3/6_control/missing.c
diff options
context:
space:
mode:
Diffstat (limited to '3/6_control/missing.c')
-rw-r--r--3/6_control/missing.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/3/6_control/missing.c b/3/6_control/missing.c
new file mode 100644
index 0000000..1b8067b
--- /dev/null
+++ b/3/6_control/missing.c
@@ -0,0 +1,13 @@
+short test(short x, short y, short z) {
+ short val = (z+y) - x;
+ if (z > 5) {
+ if (y > 2) {
+ val = x/z;
+ } else {
+ val = x/y;
+ }
+ } else if (z < 3) {
+ val = z/y;
+ }
+ return val;
+}