[ create a new paste ] login | about

Link: http://codepad.org/m1Iryhaw    [ raw code | fork ]

C, pasted on Apr 5:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <stdio.h>

int main()
{
unsigned int N;
for(N=0;N<65535;N++)
{
 if((unsigned int)((N<<8)|(N>>8))==(unsigned int)(~N)) 
  {
  printf("the number %d have 8 of 1 continue,HEX is %x.\n",N,N);
  }
}
return(0);
}


Output:
No errors or program output.


Create a new paste based on this one


Comments: