I'm writing a genetics program working w/7 pairs of genes.
I need to parse all parent combinations into parentdata.Code:int parent[14] // comprised of 7 pairs of genes. pairs are 0-1,2-3,4-5,6-7,8-9,10-11,12-13
int parentdata[128][7] // all combinations of parent's genotype
Is there a way I can do this w/o writing 128 lines of code?
ty