commit 597c05be6eda8889101f448f2bba7e045d64798d Author: vaisse Date: Wed Oct 15 14:47:54 2025 +0200 exo1 fini diff --git a/exo1/a.out b/exo1/a.out new file mode 100755 index 0000000..dca755f Binary files /dev/null and b/exo1/a.out differ diff --git a/exo1/racine.c b/exo1/racine.c new file mode 100644 index 0000000..9b365ad --- /dev/null +++ b/exo1/racine.c @@ -0,0 +1,57 @@ +#include +#include + +#define LIMIT 256 + +long racineCarree(long n){ + for(long i=0; i<(n/2); i++){ + if((i*i)==n){ + return i; + } + } + return -1; +} + +long* racineCarreeTab(long* tab, int count){ + long* rst = (long*) malloc(LIMIT*sizeof(long)); + for(long i=0; i\n"); + return EXIT_FAILURE; + } + + for(int i=1; i