diff --git a/.c00_ex08.c.swp b/.c00_ex08.c.swp new file mode 100644 index 0000000..ddea5e8 Binary files /dev/null and b/.c00_ex08.c.swp differ diff --git a/c00_ex00.c b/c00_ex00.c new file mode 100644 index 0000000..a7c637d --- /dev/null +++ b/c00_ex00.c @@ -0,0 +1,18 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* c00_ex00.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: achubuko +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2023/11/18 19:43:15 by achubuko #+# #+# */ +/* Updated: 2023/11/18 19:52:46 by achubuko ### ########.fr */ +/* */ +/* ************************************************************************** */ + +void ft_putchar(char c); + +int main() +{ + ft_putchar('0'); +} diff --git a/c00_ex01.c b/c00_ex01.c new file mode 100644 index 0000000..2bfe84b --- /dev/null +++ b/c00_ex01.c @@ -0,0 +1,18 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* c00_ex01.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: achubuko +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2023/11/18 20:31:16 by achubuko #+# #+# */ +/* Updated: 2023/11/18 20:46:04 by achubuko ### ########.fr */ +/* */ +/* ************************************************************************** */ +void ft_print_alphabet(void); + +int main(void) +{ + ft_print_alphabet(); + return 0; +} diff --git a/c00_ex02.c b/c00_ex02.c new file mode 100644 index 0000000..738b46c --- /dev/null +++ b/c00_ex02.c @@ -0,0 +1,18 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* c00_ex01.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: achubuko +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2023/11/18 20:31:16 by achubuko #+# #+# */ +/* Updated: 2023/11/18 22:07:50 by achubuko ### ########.fr */ +/* */ +/* ************************************************************************** */ +void ft_print_reverse_alphabet(void); + +int main(void) +{ + ft_print_reverse_alphabet(); + return 0; +} diff --git a/c00_ex03.c b/c00_ex03.c new file mode 100644 index 0000000..f57e2ca --- /dev/null +++ b/c00_ex03.c @@ -0,0 +1,18 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* c00_ex01.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: achubuko +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2023/11/18 20:31:16 by achubuko #+# #+# */ +/* Updated: 2023/11/18 22:24:47 by achubuko ### ########.fr */ +/* */ +/* ************************************************************************** */ +void ft_print_numbers(void); + +int main(void) +{ + ft_print_numbers(); + return 0; +} diff --git a/c00_ex04.c b/c00_ex04.c new file mode 100644 index 0000000..14aa481 --- /dev/null +++ b/c00_ex04.c @@ -0,0 +1,20 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* c00_ex01.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: achubuko +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2023/11/18 20:31:16 by achubuko #+# #+# */ +/* Updated: 2023/11/18 22:37:36 by achubuko ### ########.fr */ +/* */ +/* ************************************************************************** */ +void ft_is_negative(int); + +int main(void) +{ + ft_is_negative(1); + ft_is_negative(-1); + ft_is_negative(0); + return 0; +} diff --git a/c00_ex05.c b/c00_ex05.c new file mode 100644 index 0000000..549d062 --- /dev/null +++ b/c00_ex05.c @@ -0,0 +1,7 @@ +void ft_print_comb(void); + +int main(void) +{ + ft_print_comb(); + return 0; +} diff --git a/c00_ex06.c b/c00_ex06.c new file mode 100644 index 0000000..af9ad05 --- /dev/null +++ b/c00_ex06.c @@ -0,0 +1,5 @@ +void ft_print_comb2(void); +int main(void) +{ + ft_print_comb2(); +} diff --git a/c00_ex07.c b/c00_ex07.c new file mode 100644 index 0000000..2a68b0c --- /dev/null +++ b/c00_ex07.c @@ -0,0 +1,25 @@ +void ft_putnbr(int); +void ft_putchar(char); +int main(void) +{ + ft_putnbr(0xEFFFFFFF); + ft_putchar('\n'); + ft_putnbr(-7141); + ft_putchar('\n'); + ft_putnbr(-1); + ft_putchar('\n'); + ft_putnbr(0); + ft_putchar('\n'); + ft_putnbr(42); + ft_putchar('\n'); + ft_putnbr(421); + ft_putchar('\n'); + ft_putnbr(1945); + ft_putchar('\n'); + ft_putnbr(0xDEAD); + ft_putchar('\n'); + ft_putnbr(0xBADF00D); + ft_putchar('\n'); + ft_putnbr(0x7FFFFFFF); + ft_putchar('\n'); +} diff --git a/c00_ex08.c b/c00_ex08.c new file mode 100644 index 0000000..246c754 --- /dev/null +++ b/c00_ex08.c @@ -0,0 +1,22 @@ +void ft_print_combn(int n); +void ft_putchar(char); +int main(void) +{ + ft_print_combn(1); + ft_putchar('%'); ft_putchar('\n'); + ft_print_combn(2); + ft_putchar('%'); ft_putchar('\n'); + ft_print_combn(3); + ft_putchar('%'); ft_putchar('\n'); + ft_print_combn(4); + ft_putchar('%'); ft_putchar('\n'); + ft_print_combn(5); + ft_putchar('%'); ft_putchar('\n'); + ft_print_combn(6); + ft_putchar('%'); ft_putchar('\n'); + ft_print_combn(9); + ft_putchar('%'); ft_putchar('\n'); + ft_print_combn(10); + ft_putchar('%'); ft_putchar('\n'); + +}