int temp[2];int i = 0; if (chek1=1) {temp[i++]=a} if (chek2=1) {temp[i++]=b} if (chek3=1) {temp[i++]=c} if (chek4=1) {temp[i++]=d} x = temp[0]; y = temp[1];