Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* ************************************************************************** */
- /* */
- /* ::: :::::::: */
- /* ft_countdown.c :+: :+: :+: */
- /* +:+ +:+ +:+ */
- /* By: mduclos <marvin@42.fr> +#+ +:+ +#+ */
- /* +#+#+#+#+#+ +#+ */
- /* 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);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement