eg0rmaffin

ft_print_numbers

Jul 25th, 2019
406
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.23 KB | None | 0 0
  1. #include <unistd.h>
  2.  
  3. void    ft_print_numbers(void)
  4. {
  5.     int run = 0;
  6.     char a = '0';
  7.     while (run < 10)
  8.     {
  9.         write(1, &a, 1);
  10.         a = a + 1;
  11.         run++;
  12.     }
  13.     write(1, "\n", 1);
  14.     return 0;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment