Add ft_print_numbers.c
This commit is contained in:
parent
a54b12d58e
commit
18df1442cc
|
@ -0,0 +1,33 @@
|
||||||
|
/* ************************************************************************** */
|
||||||
|
/* */
|
||||||
|
/* ::: :::::::: */
|
||||||
|
/* ft_print_reverse_alphabet.c :+: :+: :+: */
|
||||||
|
/* +:+ +:+ +:+ */
|
||||||
|
/* By: tischmid <marvin@42.fr> +#+ +:+ +#+ */
|
||||||
|
/* +#+#+#+#+#+ +#+ */
|
||||||
|
/* Created: 2023/03/15 21:50:37 by tischmid #+# #+# */
|
||||||
|
/* Updated: 2023/03/16 05:00:01 by tischmid ### ########.fr */
|
||||||
|
/* */
|
||||||
|
/* ************************************************************************** */
|
||||||
|
|
||||||
|
#include <unistd.h>
|
||||||
|
|
||||||
|
void ft_print_numbers(void)
|
||||||
|
{
|
||||||
|
int i;
|
||||||
|
|
||||||
|
i = '0';
|
||||||
|
while (i <= '9')
|
||||||
|
{
|
||||||
|
write(1, &i, 1);
|
||||||
|
i++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ////
|
||||||
|
int main(void)
|
||||||
|
{
|
||||||
|
ft_print_numbers();
|
||||||
|
return (0);
|
||||||
|
}
|
||||||
|
*/ ////
|
Loading…
Reference in New Issue