1
0
This repository has been archived on 2024-10-25. You can view files and clone it, but cannot push or open issues or pull requests.
42-2nd-piscine/finish/C00/ex03/ft_print_numbers.c

25 lines
1.0 KiB
C
Raw Permalink Normal View History

2023-08-03 23:16:27 +02:00
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_print_numbers.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: adjoly <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/07/12 20:36:08 by adjoly #+# #+# */
/* Updated: 2023/07/15 15:33:47 by adjoly ### ########.fr */
/* */
/* ************************************************************************** */
#include <unistd.h>
void ft_print_numbers(void)
{
char nbr;
nbr = '0';
while (nbr <= '9')
{
write(1, &nbr, 1);
nbr++;
}
}