36 lines
1.1 KiB
C
36 lines
1.1 KiB
C
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* ft_print_reverse_alphabet.c :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: tischmid <marvin@42.fr> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2023/03/15 21:50:37 by tischmid #+# #+# */
|
|
/* Updated: 2023/03/16 05:00:01 by tischmid ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#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(5);
|
|
ft_is_negative(0);
|
|
ft_is_negative(-5);
|
|
return (0);
|
|
}
|
|
*/ ////
|