题意
二进制字符串格式从小到大输出00000 <-> 11111
代码
public class Main {
public static void main(String[] args) {
// TODO Auto-generated method stub
for(int a = 0;a <= 1;a++)
for(int b = 0;b <= 1;b++)
for(int c = 0;c <= 1;c++)
for(int d = 0;d <= 1;d++)
for(int e = 0;e <= 1;e++)
System.out.println(a+""+b+""+c+""+d+""+e);
}