diff --git a/ex4/ex4.c b/ex4/ex4.c index 63d6766e8af93b5122c2d7b2b19c4d7a7afa1a47..a10cdb9c0787888e46e0361dd93ad49eda2d2444 100644 --- a/ex4/ex4.c +++ b/ex4/ex4.c @@ -5,9 +5,23 @@ #include <stdio.h> #include <stdlib.h> -#include <string.h> -#include <stdbool.h> int main() { + const int ARRAY_LENGTH = 2; + int points_size; + scanf("%d", &points_size); + int *array = malloc(sizeof(int) * ARRAY_LENGTH); + + // Get the values + for (int i = 0; i < ARRAY_LENGTH; i++) { + int value; + scanf("%d", &value); + array[i] = value; + } + + printf("%d \n", 0); + + // Free the memory and exit the program + free(array); return EXIT_SUCCESS; }