From 022e2f162b378167648d0d1454647e8f9ab3ac50 Mon Sep 17 00:00:00 2001
From: Florian Burgener <florian.brgnr@gmail.com>
Date: Mon, 2 May 2022 18:57:37 +0200
Subject: [PATCH] Add ex5

---
 ex5/Makefile | 20 ++++++++++++++++++++
 ex5/ex5.c    | 45 +++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 65 insertions(+)
 create mode 100644 ex5/Makefile
 create mode 100644 ex5/ex5.c

diff --git a/ex5/Makefile b/ex5/Makefile
new file mode 100644
index 0000000..c720370
--- /dev/null
+++ b/ex5/Makefile
@@ -0,0 +1,20 @@
+TARGET = ex5
+LIBS = -lm
+CC = gcc
+CFLAGS = -g -Wall -Wextra -pedantic -fsanitize=address -fsanitize=leak
+
+.PHONY: default clean
+
+default: $(TARGET)
+
+ex4.o: ex5.c
+	$(CC) $(CFLAGS) -c $< -o $@
+
+run: $(TARGET)
+	./$<
+
+$(TARGET): ex5.o
+	$(CC) ex5.o $(CFLAGS) $(LIBS) -o $@
+
+clean:
+	rm -f *.o $(TARGET)
diff --git a/ex5/ex5.c b/ex5/ex5.c
new file mode 100644
index 0000000..07a61c0
--- /dev/null
+++ b/ex5/ex5.c
@@ -0,0 +1,45 @@
+/**
+ * @file ex5.c
+ * @author Florian Burgener
+ * @brief Exercice 5
+ * @version 1.0
+ * @date 2022-05-03
+ *
+ * @copyright Copyright (c) 2021
+ *
+ */
+
+#include <math.h>
+#include <stdbool.h>
+#include <stdint.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+
+int main() {
+    // int32_t values_length = 5;
+    // double values[values_length];
+
+    // for (int32_t i = 0; i < values_length; i += 1) {
+    //     double value;
+    //     scanf("%lf", &value);
+    //     values[i] = value;
+    // }
+
+    // int32_t values_length = 5;
+    // int32_t values[values_length];
+
+    // for (int32_t i = 0; i < values_length; i += 1) {
+    //     int32_t value;
+    //     scanf("%d", &value);
+    //     values[i] = value;
+    // }
+
+    // char a[100];
+    // int32_t b;
+    // scanf("%s %d", a, &b);
+    // printf("%s %d\n", a, b);
+
+    printf("ex1\n");
+    return EXIT_SUCCESS;
+}
-- 
GitLab