ChimPansky / 42_piscine_projects-april-2023-

1 stars 0 forks source link

0123456789 #8

Open vilvl opened 1 year ago

vilvl commented 1 year ago

https://github.com/ChimPansky/42vienna/blob/1fbf8d0e10c40ed62d62aae1df7e148b2b844a28/C00/ex08/ft_print_combn.c#L74

should also work with 10

ChimPansky commented 1 year ago

u sure? in the subject it says: • Create a function that displays all different combinations of n numbers by ascending order. • n will be so that : 0 < n < 10.

anyway for n =10 there would be only 1 solution: {0123456789}

vilvl commented 1 year ago

subject lies to u! dont trust the subject. make it work for n = 10 or u will die in 7 days

ChimPansky commented 1 year ago

well, thank god, i am not superstitious :D