#include <unistd.h> void ft_print_comb(void) { char x; char y; char z; x = '0'; y = '1'; z = '2'; while (x <= '7') { while (y <= '8') { while (z <= '9') { write(1, &x, 1); write(1, &y, 1); write(1, &z, 1); if (x <= '7' && y <= '8' && z <= '9') { write(1, ", ", 2); } z++; } y++; z = y + 1; } x++; x = z + 1; z = x + 2; } } int main(void) { ft_print_comb(); return (0); }
Standard input is empty
012, 013, 014, 015, 016, 017, 018, 019, 023, 024, 025, 026, 027, 028, 029, 034, 035, 036, 037, 038, 039, 045, 046, 047, 048, 049, 056, 057, 058, 059, 067, 068, 069, 078, 079, 089,