aboutsummaryrefslogtreecommitdiff
path: root/Semestr 4/ask/lista8/relo3.c
diff options
context:
space:
mode:
Diffstat (limited to 'Semestr 4/ask/lista8/relo3.c')
-rw-r--r--Semestr 4/ask/lista8/relo3.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/Semestr 4/ask/lista8/relo3.c b/Semestr 4/ask/lista8/relo3.c
new file mode 100644
index 0000000..6aca7b6
--- /dev/null
+++ b/Semestr 4/ask/lista8/relo3.c
@@ -0,0 +1,15 @@
+int relo3(int val) {
+ switch (val) {
+ case 100:
+ return val;
+ case 101:
+ return val + 1;
+ case 103:
+ case 104:
+ return val + 3;
+ case 105:
+ return val + 5;
+ default:
+ return val + 6;
+ }
+}