#include <unistd.h>
void ft_is_negative(int n)
{
int num = 0;
if (n < 0) {
num = 78;
} else {
num = 80;
}
write(1, &num,1);
}
int main() {
ft_is_negative(9);
ft_is_negative(0);
ft_is_negative(-1);
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: