#include <unistd.h>
void ft_print_comb(void)
{
char c;
char d;
char u;
c = '0';
while (c <= '7')
{
d = c + 1;
while (d <= '8')
{
u = d + 1;
while (u <= '9')
{
write(1, &c, 1);
write(1, &d, 1);
write(1, &u, 1);
if (c != '7')
write(1, ", ", 2);
u++;
}
d++;
}
c++;
}
}
int main(void)
{
ft_print_comb();
return (0);
}
To embed this project on your website, copy the following code and paste it into your website's HTML: