Skip to content
Snippets Groups Projects
Commit 022e2f16 authored by Florian Burgener's avatar Florian Burgener
Browse files

Add ex5

parent c236e46c
No related branches found
No related tags found
No related merge requests found
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)
/**
* @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;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment