/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_countdown.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: mduclos <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2018/10/22 18:45:08 by mduclos #+# #+# */
/* Updated: 2018/10/22 18:45:12 by mduclos ### ########.fr */
/* */
/* ************************************************************************** */
#include <unistd.h>
void ft_putchar(char c)
{
write(1, &c, 1);
}
int main(void)
{
int i;
i = 9;
while (i >= 0)
{
ft_putchar(i + '0');
i--;
}
ft_putchar('\n');
return (0);
}
Comments
0 B
|👍
/👎