This commit is contained in:
Camille Chauvet
2023-05-17 16:45:25 +00:00
commit 29ed24d567
619 changed files with 16119 additions and 0 deletions

9
Test/c05/ex00/main.c Normal file
View File

@ -0,0 +1,9 @@
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char *argv[])
{
if (argc > 1)
printf("%d", ft_iterative_factoriel(atoi(argv[1])));
}

8
Test/c05/ex01/main.c Normal file
View File

@ -0,0 +1,8 @@
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char *argv[])
{
if (argc > 1)
printf("%d", ft_recursive_factoriel(atoi(argv[1])));
}

9
Test/c05/ex02/main.c Normal file
View File

@ -0,0 +1,9 @@
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char **argv)
{
if (argc > 2)
printf("%d", ft_iterative_power(atoi(argv[1]), atoi(argv[2])));
}

10
Test/c05/ex03/main.c Normal file
View File

@ -0,0 +1,10 @@
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char **argv)
{
if (argc > 2)
printf("%d", ft_recursive_power(atoi(argv[1]), atoi(argv[2])));
}

9
Test/c05/ex04/main.c Normal file
View File

@ -0,0 +1,9 @@
#include <stdlib.h>
#include <stdio.h>
int main(int argc, char **argv)
{
if (argc > 1)
printf("%d", ft_fibonacci(atoi(argv[1])));
}

9
Test/c05/ex05/main.c Normal file
View File

@ -0,0 +1,9 @@
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char **argv)
{
if (argc > 1)
printf("%d", ft_sqrt(atoi(argv[1])));
}

8
Test/c05/ex06/main.c Normal file
View File

@ -0,0 +1,8 @@
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char **argv)
{
if (argc > 1)
printf("%d", ft_is_prime(atoi(argv[1])));
}

7
Test/c05/ex07/main.c Normal file
View File

@ -0,0 +1,7 @@
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char **argv)
{
if (argc > 1)
printf("%d", ft_find_next_prime(atoi(argv[1])));
}