#include <unistd.h>
void ft_print_even(char *str)
{
int i;
i = 0;
while (str[i])
{
if (i % 2 == 0)
{
write(1, &str[i], 1);
i++;
}
else
i++;
}
}
int main(int argc, char **argv)
{
if (argc == 2)
ft_print_even(argv[1]);
write(1, "\n", 1);
return (0);
}
To embed this project on your website, copy the following code and paste it into your website's HTML: