eg0rmaffin

ex03

Jul 4th, 2019
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.22 KB | None | 0 0
  1. #include <unistd.h>
  2.  
  3. int ft_putchar(char c)
  4. {
  5.    write(1, &c, 1);
  6.    return 0;
  7. }
  8.  
  9. int main()
  10. {
  11.     int a;
  12.     a = -3;
  13.     if (a >= 0) {
  14.         ft_putchar('P');
  15.     } else
  16.     {
  17.         ft_putchar('N');
  18.     }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment