Hi,
I need to write a program which can produce all different combinations of a 10 binary digit sequence. e.g 2^10 or 1024 different binary values.
e.g 0000000000, 0000000001, 0000000010, 0000000011, ..........., 1111111111
Anyone knows? :sick:
Printable View
Hi,
I need to write a program which can produce all different combinations of a 10 binary digit sequence. e.g 2^10 or 1024 different binary values.
e.g 0000000000, 0000000001, 0000000010, 0000000011, ..........., 1111111111
Anyone knows? :sick:
VB Code:
For i As Integer = 0 To 1023 MessageBox.Show(Convert.ToString(i, 2).PadLeft(10, "0"c)) Next i