#include <unistd.h>

void	ft_is_negative(int n)
{
	if (n < 0)
	{
		write(1, "N", 1);
	}
	else
	{
		write(1, "P", 1);
	}
}

int	main(void)
{
	ft_is_negative(6);
	return (0);
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: