The function is very single, title. Direct Sticker Code:
private void Button1_Click (object sender, EventArgs e) {int[] Inumber = new Int[6]; Inumber[0] = 3; INUMBER[1] = 4; INUMBER[2] = 5; INUMBER[3] = 15; INUMBER[4] = 16; INUMBER[5] = 18; Array.Sort (Inumber); int iCount2 = 0; int iCount3 = 0; int iCount4 = 0; int iCount5 = 0; int iCount6 = 0; for (int i = 0; i < 6; i++) {if (i + 1<6 && inumber[i] + 1 = = Inumber[i + 1]) {if (i + 2<6 && inumber[i + 1] + 1 = = Inumber[i + 2]) { if (i + 3 < 6 && Inumber[i + 2] + 1 = = Inumber[i + 3]) { if (i + 4 < 6 && Inumber[i + 3] + 1 = = Inumber[i + 4]) { if (i + 5 < 6 && inUmber[i + 4] + 1 = = Inumber[i + 5]) {iCount6 = ICount6 + 1; i = i + 5; } else {iCount5 = ICount 5 + 1; i = i + 4; }} else { ICOUNT4 = iCount4 + 1; i = i + 3; }} else {iCount3 = Icoun T3 + 1; i = i + 2; }} else {iCount2 = ICount2 + 1; i = i + 1; }} } }
Ask color ball number and number