#include <unistd.h>
void ft_putnbr2(char n)
{
char d;
char u;
d = n / 10 + '0';
u = n % 10 + '0';
write(1, &d, 1);
write(1, &u, 1);
}
void ft_print_comb2(void)
{
int a;
int b;
a = 0;
while (a <= 98 )
{
b = a + 1;
while(b <= 99)
{
ft_putnbr2(a);
write(1, " ", 1);
ft_putnbr2(b);
if (!(a == 98 && b == 99))
{
write(1, ", ", 2);
}
b++;
}
a++;
}
}
int main(void)
{
ft_print_comb2();
return (0);
}
To embed this project on your website, copy the following code and paste it into your website's HTML: