#include
int main()
{
int i,j;
for(i=0;i<6;i++)
{
for(j=0;j<=i;j++)
putchar('1');
while(j<6)
{
putchar('0');
j++;
}
puts("");
}
return 0;
}
#include
int main(void)
{
int a = 0x100000;int k;
for(k=1;k<7;k++)
{
static c = 0x100000;
printf("%x\n",c);
a = a>>4;
c = c+a;
}
}
看成一个一个的整数,找规律